@bitget-ai/bitget-agent-skill 4.0.4 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,47 @@ All notable changes to `bitget-agent-skill` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.1.0] - 2026-11-24
9
+
10
+ Publish only after the cloud MCP lists `search`, `read`, and `write`.
11
+
12
+ ### Changed
13
+
14
+ - **The skill uses the MCP's new tools: `search`, `read`, `write`.** `search`
15
+ finds an action by plain words and returns what it takes, the rules that
16
+ are particular to it, and a call that works; `read` runs queries and
17
+ changes nothing; `write` runs actions that change the account. They
18
+ replace `guide`, `do_query`, and `do_request_open_api`, which the server
19
+ keeps for clients that have not updated. The skill says how to carry on
20
+ with the older tools when a chat still has an old tool list.
21
+ - **Rules of single actions are no longer in the skill.** Which parameter a
22
+ query takes, how a stock token is written, which interval spellings exist:
23
+ these are in the `params` and `notes` of each search result, kept with the
24
+ server and tested against the exchange. The skill keeps what holds for
25
+ every action: search first, take parameters from the result, preview and
26
+ confirm writes, never resend a write whose outcome is unknown, the account
27
+ rules, and disconnecting.
28
+ - **Writes.** The preview may carry `warnings`; the skill says to correct the
29
+ call before showing the confirmation card. For futures it says to read the
30
+ account's position mode first.
31
+ - **Troubleshooting.** New rows for a call refused before sending
32
+ (`notSent`), for an action sent to the wrong tool, and for a chat with an
33
+ old tool list.
34
+
35
+ ### Removed
36
+
37
+ - The stock-token paragraph drafted for 4.0.5 (never published). Part of it
38
+ was wrong: `get-reality-orderbook` and `get-reality-fills` are the
39
+ market's order book and trades, open to whitelisted institutions only, not
40
+ the account's own orders and fills. The correct rules are in the server's
41
+ definitions.
42
+
43
+ ### Existing users
44
+
45
+ Update with `npx @bitget-ai/bitget-agent-skill@latest --target all`. Nothing
46
+ else changes: the same MCP address, the same login. Until then the older
47
+ tools keep working.
48
+
8
49
  ## [4.0.4] - 2026-11-24
9
50
 
10
51
  ### Fixed
package/README.md CHANGED
@@ -65,12 +65,12 @@ Installing the skill needs Node.js 20 or later. An AI app that cannot run comman
65
65
  ```mermaid
66
66
  graph LR
67
67
  A[You<br/>natural language] --> B[AI agent<br/>with this skill]
68
- B -->|guide / do_query / do_request_open_api| C[Bitget cloud MCP<br/>agent.bitget.com/mcp]
68
+ B -->|search / read / write| C[Bitget cloud MCP<br/>agent.bitget.com/mcp]
69
69
  C --> D[Bitget]
70
70
  style B fill:#28a745,stroke:#333,stroke-width:2px,color:#fff
71
71
  ```
72
72
 
73
- - **Three tools.** The MCP exposes `guide` (find what is available), `do_query` (market and reference data), and `do_request_open_api` (trading and account actions).
73
+ - **Three tools.** The MCP exposes `search` (find what you need by words, with what the call takes and a call that works), `read` (queries: market data, balances, positions, orders), and `write` (actions that change the account). The earlier `guide`, `do_query`, and `do_request_open_api` still work during the transition; skill 4.1.0 and later uses the new three.
74
74
  - **Market data needs no login.** Trading, account, and Reality / rToken actions need you to authorize once in the browser.
75
75
  - **Login is an OAuth token held by your AI client's MCP connection.** It is not an API key, and it is not written into the skill files.
76
76
  - **Writes are previewed first.** The skill has the AI preview a write with `dry_run`, show you a confirmation card, and only execute after you agree. High-risk actions such as cancel-all, close-all, set leverage, and repay also require an explicit `confirm` on the server. When the exchange gives no answer to a write, the AI is told not to retry and to check whether the order exists.
@@ -84,7 +84,7 @@ One skill, `bitget-agentic`, following the [Agent Skills](https://agentskills.io
84
84
 
85
85
  | File | Purpose |
86
86
  |---|---|
87
- | `SKILL.md` | The three tools, where to start, the `guide` → execute workflow, write safety, and account rules. |
87
+ | `SKILL.md` | The three tools, where to start, the `search` → `read` / `write` workflow, write safety, and account rules. |
88
88
  | `references/first-time-setup.md` | Install the skill, register the MCP in each client, and check that the tools are available. |
89
89
  | `references/authorization.md` | Opening authorization in each client, client ids, Codex notes, network and proxy. |
90
90
  | `references/legacy-migration.md` | Detecting an old local Bitget MCP setup and what to tell the user. |
@@ -185,7 +185,7 @@ When you authorize for the first time, create a **new** Agentic account. Account
185
185
 
186
186
  Re-run the installer, then restart your AI tool. Check that `SKILL.md` exists in the location shown in [Installation](#installation).
187
187
 
188
- ### The AI cannot see `guide`, `do_query`, or `do_request_open_api`
188
+ ### The AI cannot see `search`, `read`, or `write`
189
189
 
190
190
  The MCP is not registered in this client, or an old local Bitget MCP is still in the config and shadows the new one. Register the address as in [Connect the Cloud MCP](#connect-the-cloud-mcp) and remove the old entry.
191
191
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.4
1
+ 4.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitget-ai/bitget-agent-skill",
3
- "version": "4.0.4",
3
+ "version": "4.1.0",
4
4
  "packageManager": "pnpm@8.14.1",
5
5
  "description": "Official Bitget AI skill — teaches Claude Code, Codex, Cursor, OpenClaw and other AI agents to connect the Bitget cloud MCP (https://agent.bitget.com/mcp), authorize a Bitget Agentic account with browser OAuth, and trade or query from natural language. No local API keys. Run `npx @bitget-ai/bitget-agent-skill` to deploy into your AI tool's skill directory.",
6
6
  "type": "module",
@@ -19,8 +19,8 @@ license: MIT
19
19
  compatibility: Requires an AI client that can connect remote HTTP MCP servers with OAuth, and network access to agent.bitget.com and bitget.com.
20
20
  metadata:
21
21
  author: "Bitget"
22
- version: "4.0.4"
23
- updated: "2026-11-19"
22
+ version: "4.1.0"
23
+ updated: "2026-11-24"
24
24
  mcp-server: "https://agent.bitget.com/mcp"
25
25
  ---
26
26
 
@@ -30,28 +30,30 @@ The Bitget cloud MCP at `https://agent.bitget.com/mcp` lets an AI agent trade an
30
30
 
31
31
  There are no API keys in this flow. Never ask for, create, paste, or configure one (`BITGET_API_*`), and never copy the token into a file.
32
32
 
33
- The server has exactly three tools. This skill registers the server as `bitget-mcp-server`:
33
+ Use these three tools. This skill registers the server as `bitget-mcp-server`:
34
34
 
35
35
  | Tool | Purpose | Login needed |
36
36
  |---|---|---|
37
- | `bitget-mcp-server:guide` | Discover what is available and get the id to call | No |
38
- | `bitget-mcp-server:do_query` | Market and reference data, by `entry_id` | No |
39
- | `bitget-mcp-server:do_request_open_api` | Bitget market, trading, and account actions, by `operation_id` | Trading, account, and Reality / rToken: yes. Market: no |
37
+ | `bitget-mcp-server:search` | Find what you need by words, with what the call takes and a call that works | No |
38
+ | `bitget-mcp-server:read` | Run a query by name: prices, order book, balances, positions, orders, company data. Changes nothing | Account queries and stock-token company data: yes. Market data: no |
39
+ | `bitget-mcp-server:write` | Run an action that changes the account: orders, positions, settings | Yes |
40
40
 
41
- The rest of this skill writes the tool names without the server prefix. Anything else, including `mcp_auth`, is not a server tool.
41
+ The rest of this skill writes the tool names without the server prefix. `mcp_auth` and anything else not listed by the client is not a server tool.
42
+
43
+ The server also lists `guide`, `do_query`, and `do_request_open_api`. They are the older form of the same three and still work; use them only when `search` is not in this chat's tool list (an old tool list: reconnect the MCP or start a new chat when convenient). `guide` finds an id, `do_query` and `do_request_open_api` run it.
42
44
 
43
45
  Priorities, in order: safety, then a clear account state, then speed.
44
46
 
45
47
  ## Start here
46
48
 
47
- 1. **Are the three tools available in this chat?** Try `guide()`. If they are not, the MCP is not connected. That is a connection problem, not an authorization failure: follow [references/first-time-setup.md](references/first-time-setup.md).
48
- 2. **Does the request need login?** Market data does not, so answer it right away. For trading, account, or Reality requests, check login with one read-only account call:
49
+ 1. **Are the tools available in this chat?** Try `search(query="account balance")`. If the tools are not there, the MCP is not connected. That is a connection problem, not an authorization failure: follow [references/first-time-setup.md](references/first-time-setup.md).
50
+ 2. **Does the request need login?** Market data does not, so answer it right away. For trading, account, or stock-token company data, check login with one read-only account call:
49
51
 
50
52
  ```
51
- do_request_open_api(operation_id="getAccountAssets", params={})
53
+ read(name="getAccountAssets", params={})
52
54
  ```
53
55
 
54
- (`getDeductInfo` also works.) Success means logged in. An unauthorized or HTTP 401 result means not logged in: follow [references/authorization.md](references/authorization.md). Start authorization unless the user explicitly says not to. "Just check the market first" is not a refusal.
56
+ Success means logged in. An unauthorized or HTTP 401 result means not logged in: follow [references/authorization.md](references/authorization.md). Start authorization unless the user explicitly says not to. "Just check the market first" is not a refusal.
55
57
  3. **Logged in:** use the two sections below.
56
58
 
57
59
  If you were told to read this file right after installing it, read all of it and continue in the same chat.
@@ -59,21 +61,32 @@ If you were told to read this file right after installing it, read all of it and
59
61
  ## Calling the MCP
60
62
 
61
63
  ```
62
- Market data: guide(surface="market_data") → entry_id → do_query(entry_id, params)
63
- Trade/account: guide(surface="open_api") → operation_id → do_request_open_api(operation_id, params)
64
+ search(query="BTC price") → name, params, notes, call → read(name, params)
65
+ search(query="place order") → name, params, notes, call → write(name, params, dry_run=true)
64
66
  ```
65
67
 
66
- Get every id from `guide`. Do not guess an `entry_id` or `operation_id`. If `guide` does not list something, tell the user it is not available. When an error carries `suggestions`, pick from those.
68
+ **Search first, with the plain words of the thing:** "account balance", "open positions", "BTC candles", "stop loss", "funding rate", "NVDA company overview". Do not guess a name or a parameter, and do not rely on what you remember of Bitget's API: what an action takes is in the search result, and it is the server's current definition.
69
+
70
+ Each result gives:
71
+
72
+ - `name` and `tool`: what to call, through `read` or `write`.
73
+ - `params`: what it takes. The ones marked `required` must be sent.
74
+ - `notes`: rules that are particular to this action. Read them before the first call.
75
+ - `call`: the arguments of a call that works. Copy it and change the values. `exampleTested: false` means it is from Bitget's documentation and was not run.
76
+ - `notAvailable`: what was asked for is not offered. Tell the user; do not try something near it.
67
77
 
68
- Parameters for `do_request_open_api` use Bitget UTA v3 names. The two that go wrong most:
78
+ This skill does not repeat the rules of single actions (which parameter a query takes, how a stock token is written, which interval spellings exist). They are in `params` and `notes`, and they change with the server. What holds for every action:
69
79
 
70
- - **`category`**, not `productType`: `SPOT`, `MARGIN`, `USDT-FUTURES`, `COIN-FUTURES`, or `USDC-FUTURES`. Most trade and account actions need it.
71
- - **`qty`**, not `size`. It is in base coin (for example BTC), except spot / margin market buys and `COIN-FUTURES`, where it is in quote coin (for example USDT). Round it to the symbol's precision from `getInstruments`.
80
+ - Parameter names are Bitget UTA v3: `category` (`SPOT`, `MARGIN`, `USDT-FUTURES`, `COIN-FUTURES`, `USDC-FUTURES`) and `qty`, not `productType` and `size`.
81
+ - A call that lacks a required parameter is refused before it is sent (`notSent: true`), with `missing` and `expects`. Correct it from `expects`; nothing happened.
82
+ - When a result carries `adjusted`, the server corrected a parameter and says how to write it next time.
83
+ - When an error carries `hint`, do what it says. When it carries `suggestions`, pick from those.
84
+ - If `search` finds nothing for a plain word, the thing is not available here: tell the user.
72
85
 
73
86
  Not available through this MCP:
74
87
 
75
88
  - Withdrawals, transfers from the main account into the sub-account, and changes to main-account email, phone, or 2FA.
76
- - US stock direct, CFD, tax, staking / lending, and institutional lending.
89
+ - Trading US stocks themselves (stock tokens are available: search "stock token"), CFD, tax, staking / lending, and institutional lending.
77
90
 
78
91
  If the balance is insufficient, the user deposits from the main account on the Bitget website.
79
92
 
@@ -81,17 +94,18 @@ If the balance is insufficient, the user deposits from the main account on the B
81
94
 
82
95
  Writes move real funds, so each one takes three steps:
83
96
 
84
- 1. **Preview** with `dry_run: true`.
85
- 2. **Show a confirmation card:** symbol, side, size with its unit (see `qty` above: "0.01 BTC" and "0.01 USDT" are different orders), price type, account, mainnet, liquidation price when available, and "Confirm execution?".
86
- 3. **Execute** with `confirm: true` only after the user clearly replies "yes" or "confirm". "Just do it for me" is not confirmation. Pass `note` with the write: one sentence on why. It is kept with the record of the call.
97
+ 1. **Preview** with `write(name, params, dry_run=true)`. If the preview carries `warnings`, correct the call first.
98
+ 2. **Show a confirmation card:** symbol, side, size with its unit, price type, account, mainnet, liquidation price when available, and "Confirm execution?". The unit of `qty` is in the action's `notes`: "0.01 BTC" and "0.01 USDT" are different orders.
99
+ 3. **Execute** with `write(name, params)` only after the user clearly replies "yes" or "confirm"; add `confirm=true` when the action is high-risk. "Just do it for me" is not confirmation. Pass `note` with the write: one sentence on why. It is kept with the record of the call.
87
100
 
88
101
  The server refuses high-risk writes (cancel all, close all, countdown cancel-all, set leverage, repay, holding mode, account mode) without `confirm: true`.
89
102
 
90
- **If a write returns `outcomeUnknown: true`, do not submit it again.** The exchange gave no readable answer, so the order may or may not exist, and a second submission can become a second order. Look it up with the `clientOid` from the result (`getOrderDetails`), or list open orders and positions, then tell the user what you found.
103
+ **If a write returns `outcomeUnknown: true`, do not submit it again.** The exchange gave no readable answer, so the order may or may not exist, and a second submission can become a second order. Look it up with the `clientOid` from the result (`read(name="getOrderDetails", params={"clientOid": ...})`), or list open orders and positions, then tell the user what you found.
91
104
 
92
105
  - Check positions before closing one.
93
106
  - After a risk-type error, do not add size.
94
- - Batch place, cancel, or modify (`batchOrder`, `batchCancel`, `batchModifyOrders`): pass `params` as a JSON array of order objects, or as `{"orderList": [...]}` / `{"orders": [...]}`.
107
+ - For futures, read the account's position mode before the first order (`read(name="getAccountInfo")`, `holdMode`): the order is written differently in one-way and hedge mode, as the `notes` of `placeOrder` say.
108
+ - Batch place, cancel, or modify (`batchOrder`, `batchCancel`, `batchModifyOrders`): pass `params` as a JSON array of order objects.
95
109
  - When rate limited, retry later. Do not re-authorize.
96
110
 
97
111
  ## Account rules
@@ -102,14 +116,14 @@ The server refuses high-risk writes (cancel all, close all, countdown cancel-all
102
116
  - **Disconnecting is done here, by you.** When the user clearly asks to disconnect or log out of Bitget, say what will happen (this agent's authorization ends; open orders and positions stay on the account; other agents connected to it keep working), then call:
103
117
 
104
118
  ```
105
- do_request_open_api(operation_id="disconnectAgent", confirm=true)
119
+ write(name="disconnectAgent", confirm=true)
106
120
  ```
107
121
 
108
122
  Then clear this client's own copy of the login, or it keeps trying the old one: in Codex run `codex mcp logout bitget-mcp-server` (use the name the server was added under). To connect again later: `codex mcp login bitget-mcp-server`.
109
123
 
110
124
  Do not send the user to the Bitget website to disconnect. Do not call it for any other reason, such as an error or an expired token.
111
125
 
112
- - **Other agents on the account.** A result may carry `connectedAgents`: the other agents connected to this account, sent when one joins or leaves. Tell the user in one sentence. If one is marked `new`, say so plainly: the user may not have connected it. An order whose `clientOid` starts with another agent's `agentTag` is that agent's order: do not cancel or change it unless the user asks. `do_request_open_api(operation_id="getConnectedAgents")` lists every connection with when it was last active. To disconnect one of them at the user's request, pass its tag: `do_request_open_api(operation_id="disconnectAgent", params={"agentTag": "<tag>"}, confirm=true)`.
126
+ - **Other agents on the account.** A result may carry `connectedAgents`: the other agents connected to this account, sent when one joins or leaves. Tell the user in one sentence. If one is marked `new`, say so plainly: the user may not have connected it. An order whose `clientOid` starts with another agent's `agentTag` is that agent's order: do not cancel or change it unless the user asks. `read(name="getConnectedAgents")` lists every connection with when it was last active. To disconnect one of them at the user's request, pass its tag: `write(name="disconnectAgent", params={"agentTag": "<tag>"}, confirm=true)`.
113
127
  - **When a private call says why it is unauthorized,** tell the user that reason (for example "disconnected at the user's request", "disconnected by another agent", "not used for a long time") before you offer to authorize again.
114
128
 
115
129
  - **Token validity** is judged only by an unauthorized or HTTP 401 result from a private call. Do not assume a lifetime, and do not describe it as an API key expiring. Once the token is invalid, stop trading and re-authorize first.
@@ -133,7 +147,7 @@ Look the situation up in [references/troubleshooting.md](references/troubleshoot
133
147
 
134
148
  | File | Read it when |
135
149
  |---|---|
136
- | [references/first-time-setup.md](references/first-time-setup.md) | The three tools are missing, or the user is connecting for the first time |
150
+ | [references/first-time-setup.md](references/first-time-setup.md) | The tools are missing, or the user is connecting for the first time |
137
151
  | [references/authorization.md](references/authorization.md) | A private call is unauthorized, the user asks to re-authorize, or the client is Codex |
138
152
  | [references/legacy-migration.md](references/legacy-migration.md) | Before opening authorization, or when old Bitget config is suspected |
139
153
  | [references/troubleshooting.md](references/troubleshooting.md) | Any failure, or the user wants to delete an old account or API key |
@@ -16,7 +16,7 @@ Follow this when a private call returns unauthorized or HTTP 401, when the user
16
16
  1. **Check for legacy MCP config** (`legacy-migration.md`). If you find any, send the reminder from that file and carry on. Stop only if the user explicitly says they do not want to upgrade.
17
17
  2. **Warn the user if this client is already logged in:** authorizing switches this client to the account they pick. If that is a different account, ask them to deal with what this client was managing on the old one first.
18
18
  3. **Open authorization** from the client, as described below. Tell the user a browser window will open and that no API key is involved. Never fill in passwords for them.
19
- 4. **Verify** with `do_request_open_api(operation_id="getAccountAssets", params={})` (or `getDeductInfo`). Finishing the web page is not proof of login. If the first attempt says `Authentication required`, wait a few seconds and retry once.
19
+ 4. **Verify** with `read(name="getAccountAssets", params={})`. Finishing the web page is not proof of login. If the first attempt says `Authentication required`, wait a few seconds and retry once.
20
20
  5. **Tell the user:**
21
21
 
22
22
  > Authorization complete. An API Key will not be sent to you. Login state stays on the cloud MCP connection — you do not need to hand me any secret.
@@ -1,12 +1,12 @@
1
1
  # First-time setup
2
2
 
3
- Follow this when `guide`, `do_query`, and `do_request_open_api` are not available in the chat, or the user is connecting a Bitget Agentic account for the first time. Stay in the current chat unless step 3 says a new session is needed.
3
+ Follow this when `search`, `read`, and `write` are not available in the chat, or the user is connecting a Bitget Agentic account for the first time. Stay in the current chat unless step 3 says a new session is needed.
4
4
 
5
5
  ```
6
6
  Setup progress:
7
7
  - [ ] 1. Skill installed and read
8
8
  - [ ] 2. Cloud MCP registered in this client
9
- - [ ] 3. guide() works in this chat
9
+ - [ ] 3. search() works in this chat
10
10
  - [ ] 4. Legacy MCP config checked
11
11
  - [ ] 5. Authorized and verified
12
12
  ```
@@ -63,7 +63,7 @@ Nothing else needs to be configured. Recent Codex versions start the login right
63
63
 
64
64
  ## 3. Check that the tools are available
65
65
 
66
- Call `guide()` in this chat.
66
+ Call `search(query="account balance")` in this chat.
67
67
 
68
68
  - **Cursor and most other clients** load a newly registered server right away.
69
69
  - **Claude Code and Codex** load it when the next session starts. If you registered the server in this session, the tools will not appear here. First do what does not need them: step 4, and in Codex also the login from step 5. Then ask the user to start a new session and send "continue the Bitget setup". In the new session, start again from this step.
@@ -74,7 +74,7 @@ If the tools are missing in a session that started after the server was register
74
74
  2. Only when there is no legacy config and the tools are still missing, ask the user to open a new chat and send:
75
75
 
76
76
  ```
77
- I added https://agent.bitget.com/mcp to my MCP config, but this chat still cannot call guide / do_query / do_request_open_api. Check whether an old @bitget-ai/bitget-agent-mcp server or a local MCP with hand-filled API keys is still configured. If so, tell me how to remove it, then confirm the new connection.
77
+ I added https://agent.bitget.com/mcp to my MCP config, but this chat still cannot call search / read / write. Check whether an old @bitget-ai/bitget-agent-mcp server or a local MCP with hand-filled API keys is still configured. If so, tell me how to remove it, then confirm the new connection.
78
78
  ```
79
79
 
80
80
  Missing tools are a connection problem. Do not open authorization, install `@bitget-ai/bitget-agent-mcp`, or reinstall this skill to fix them.
@@ -12,7 +12,7 @@ Find the situation in the table and take the action. If nothing matches and the
12
12
  | The user cancelled, or the callback did not complete | Say "Authorization was not completed. Should I start again?" |
13
13
  | A result carries `connectedAgents` | Tell the user who else is connected, and point out any marked `new`. Leave their orders alone ("Account rules" in `SKILL.md`) |
14
14
  | The user asks to remove an agent they no longer use | `getConnectedAgents`, show the list with last activity, then `disconnectAgent` with that agent's `agentTag` and `confirm=true` after the user picks one |
15
- | The user asks to disconnect or log out | `do_request_open_api(operation_id="disconnectAgent", confirm=true)`, after telling them what it does ("Account rules" in `SKILL.md`). Do not send them to the Bitget website. In Codex, then run `codex mcp logout bitget-mcp-server` |
15
+ | The user asks to disconnect or log out | `write(name="disconnectAgent", confirm=true)`, after telling them what it does ("Account rules" in `SKILL.md`). Do not send them to the Bitget website. In Codex, then run `codex mcp logout bitget-mcp-server` |
16
16
  | Codex keeps saying the server needs authentication after a disconnect | Codex is still trying the old login. Run `codex mcp logout bitget-mcp-server`, then `codex mcp login bitget-mcp-server` to connect again |
17
17
  | The flow finishes but a private call still says not logged in | Wait a few seconds and retry the read-only call once. If it still fails, run one fresh authorization round |
18
18
  | Codex: the authorization link does not complete | The `codex mcp login` command that printed it is no longer running. Run it again and keep it running until the user finishes ("Codex notes" in `authorization.md`) |
@@ -24,11 +24,14 @@ Find the situation in the table and take the action. If nothing matches and the
24
24
  | The authorization page returns JSON 422 and OAuth parameters such as `response_type`, `client_id`, `redirect_uri`, `state`, or `code_challenge` are missing | The web login redirect dropped the parameters; the MCP is fine. Run one fresh authorization round. If it repeats, the user clears the site's login state and tries again |
25
25
  | The token exchange returns 403 with an HTML body | Usually a web firewall block, not an application error. Tell the user; do not treat it as an expired token |
26
26
  | Rate limited | Retry later. Do not re-authorize |
27
- | `Parameter ... cannot be empty` (40019) or `Parameter verification failed` (400172) | A required parameter is missing or has an old name. Check `category` and `qty` ("Calling the MCP" in `SKILL.md`), then the action's detail from `guide(surface="open_api", operation_id=...)`. Do not re-authorize |
27
+ | A call is refused with `notSent: true` and `missing` | A required parameter is absent. Nothing was sent. Add it from `expects` in the same result and call again |
28
+ | `Parameter ... cannot be empty` (40019) or `Parameter verification failed` (400172) | A parameter is missing, has an old name, or is in the wrong form. Compare the call with `expects` in the result, or with `search(query="<the action's name>")`. Do not re-authorize |
28
29
  | `checkBDScale` / `checkScale` error on an order (40808) | `qty` has more decimals than the symbol allows. Read the precision with `getInstruments`, round down, preview again |
29
30
  | `less than the minimum amount` (45110) | The order is below the symbol's minimum. Often `qty` was given in the wrong unit: a spot market buy takes quote coin. Tell the user the minimum; do not raise the size on your own |
30
31
  | `The user must bind the phone or Google` (40016) | The user binds a phone number or Google Authenticator in their Bitget account security settings, then retries. You cannot do it for them |
31
- | `Unknown action` | Use a name from the error's `suggestions`, or list the domain with `guide`. Do not guess again |
32
+ | `Unknown action` | Use a name from the error's `suggestions`, or `search` for the thing in plain words. Do not guess again |
33
+ | `read` says the name "changes the account", or `write` says it "is a query" | The action belongs to the other tool: the message gives the call |
34
+ | `search` is not in the tool list, but `guide` is | This chat has an old tool list. The older tools still work (`guide`, then `do_query` or `do_request_open_api`); reconnect the MCP or start a new chat when convenient |
32
35
  | A write returns `outcomeUnknown: true` | It may or may not have been executed. Do not submit it again. Look it up with the returned `clientOid` (`getOrderDetails`) or list open orders and positions, then tell the user what you found |
33
36
  | A result has `retryable: true` (`upstreamUnreachable`, `upstreamTimeout`, `authUnavailable`) | Nothing changed. Retry in a few seconds. Do not re-authorize |
34
37
  | Insufficient balance | The user deposits from the main account on the Bitget website |