Skip to content

Commit 87febe3

Browse files
committed
Fix network parameter annotations for consistency
Read-only EVM tools inconsistently annotated network parameter — some said "(optional)" while others didn't. Fixed all to consistently show "(optional, default bsc)". Also clarified that Greenfield write tools DO have a default (testnet), correcting the blanket statement that all writes have no default.
1 parent 4f6557b commit 87febe3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

skills/bnbchain-mcp-skill/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Restart or reload the MCP client after changing config so the server starts.
6767
- **Read-only tools** (blocks, balances, contract reads, get_chain_info, etc.): **`network`** is optional; default is `bsc`. Use **`get_supported_networks`** to list options.
6868
- **Write operations** (`transfer_native_token`, `transfer_erc20`, `transfer_nft`, `transfer_erc1155`, `approve_token_spending`, `write_contract`, `register_erc8004_agent`, `set_erc8004_agent_uri`, Greenfield writes): **`network` is REQUIRED.** There is no default for writes. If the user does not specify the network, you **MUST ask** before calling the tool. Do not assume or default to mainnet (`bsc`); accidental mainnet execution causes irreversible financial loss.
6969

70+
> **Note:** For EVM write tools, network is required with no default. For Greenfield tools, network defaults to testnet.
71+
7072
### Tool categories
7173

7274
| Category | Examples | Needs PRIVATE_KEY? |

skills/bnbchain-mcp-skill/references/evm-tools-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Tools that require **PRIVATE_KEY** in the MCP server env are marked with **(writ
1414
| Tool | Description | Parameters |
1515
|------|-------------|------------|
1616
| get_latest_block | Get the latest block | `network` (optional) |
17-
| get_block_by_number | Get a block by number | `blockNumber` (string), `network` |
18-
| get_block_by_hash | Get a block by hash | `blockHash`, `network` |
17+
| get_block_by_number | Get a block by number | `blockNumber` (string), `network` (optional, default bsc) |
18+
| get_block_by_hash | Get a block by hash | `blockHash`, `network` (optional, default bsc) |
1919

2020
---
2121

@@ -25,15 +25,15 @@ Tools that require **PRIVATE_KEY** in the MCP server env are marked with **(writ
2525
|------|-------------|------------|
2626
| get_transaction | Get transaction by hash | `txHash`, `network` |
2727
| get_transaction_receipt | Get receipt by hash | `txHash`, `network` |
28-
| estimate_gas | Estimate gas for a tx | `to`, `value` (optional, e.g. "0.1"), `data` (optional hex), `network` |
28+
| estimate_gas | Estimate gas for a tx | `to` (required), `value` (optional, e.g. "0.1"), `data` (optional hex), `network` (optional, default bsc) |
2929

3030
---
3131

3232
## Network
3333

3434
| Tool | Description | Parameters |
3535
|------|-------------|------------|
36-
| get_chain_info | Chain ID, block number, RPC URL | `network` |
36+
| get_chain_info | Chain ID, block number, RPC URL | `network` (optional, default bsc) |
3737
| get_supported_networks | List supported networks | (none) |
3838

3939
---

0 commit comments

Comments
 (0)