Skip to content

Commit 3421a26

Browse files
committed
Fix args required/optional annotations for contract tools
## Summary - Fixed `read_contract` args marked as required when they're optional - Fixed `write_contract` args not explicitly marked as required - Improved ABI description clarity ## Type of Change - [x] Documentation fix ## Changes Made - read_contract: args → "args (optional array)" - write_contract: args → "args (required array)" - Clarified ABI format: full contract ABI or relevant function entries
1 parent 4f6557b commit 3421a26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ Tools that require **PRIVATE_KEY** in the MCP server env are marked with **(writ
6363
| Tool | Description | Parameters |
6464
|------|-------------|------------|
6565
| is_contract | Check if address is contract or EOA | `address`, `network` |
66-
| read_contract | Call view/pure function | `contractAddress`, `abi` (JSON array), `functionName`, `args` (optional array), `network` |
67-
| write_contract | **(Write)** Call state-changing function | `contractAddress`, `abi`, `functionName`, `args`, `privateKey` (or env), `network` |
66+
| read_contract | Call view/pure function | `contractAddress`, `abi` (JSON array of ABI entries, e.g. `[{"type":"function","name":"balanceOf",...}]`), `functionName`, `args` (optional array), `network` |
67+
| write_contract | **(Write)** Call state-changing function | `contractAddress`, `abi` (JSON array of ABI entries), `functionName`, `args` (required array), `privateKey` (or env), `network` |
6868

69-
**read_contract:** Pass the ABI of the single function (or full contract ABI). Example args: `[]` or `["0x...", "123"]`.
69+
**read_contract / write_contract:** Pass the contract ABI (full or relevant function entries). Example args: `[]` or `["0x...", "123"]`.
7070

7171
---
7272

0 commit comments

Comments
 (0)