Agnost AI
← Leaderboard

OpenZeppelin Solidity

https://mcp.openzeppelin.com/contracts/solidity/mcp

Generates OpenZeppelin-based Solidity contract source code for ERC-20, ERC-721, ERC-1155, stablecoin, RWA, account, governor and custom contracts.

Developer tools8 toolsv0.7.2Streamable HTTP
B+

81.0/100

#12 of 32 · #5 in Developer tools

Reviewed 23h ago·Scan took 16.5s·Descriptions graded by Claude
Fix it

Fix it with your coding agent

Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.

Fix prompt
Improve the MCP server at https://mcp.openzeppelin.com/contracts/solidity/mcp so AI agents can use it better. It scored 81/100 (B+) on the Agnost MCP Leaderboard. Top fixes: 1. Correct solidity-erc1155's description: it calls ERC-1155 a 'non-fungible token' standard, but ERC-1155 is a multi-token standard covering fungible and non-fungible tokens. Also add when-to-use guidance contrasting erc20 vs stablecoin vs rwa, and erc721 vs erc1155. 2. Add readOnlyHint: true and destructiveHint: false annotations to all 8 tools, since they only return generated source code and never write to disk or deploy. Also add an outputSchema, or state the Markdown code-block return format consistently. 3. Document the large parameter sets (19-21 params on erc20/stablecoin/rwa) in the descriptions: which params are required, the access-control options (ownable/roles/managed), and that upgradeable is unsupported for stablecoin/rwa. Finish the truncated 'Experimental, some features are not audited' warnings. Per-tool fixes: - solidity-custom: Change to: 'Generate a blank contract scaffold with optional access control, pausability and upgradeability; use it when no token, governor or account template fits. It does not generate custom business logic.' 'Custom' is vague: the tool only produces a base contract with access control, pausable and upgradeable options, not arbitrary logic No guidance on when to use it instead of the token-specific tools No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones - solidity-rwa: Add: 'Use for tokenized real-world assets (securities, property) that need compliance controls; use solidity-stablecoin for pegged currencies.' Its schema is identical to solidity-stablecoin, but the description gives no basis for choosing between them Experimental status is noted but its implications are not explained The namespacePrefix description is irrelevant because upgradeability is not supported No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones Takes 21 parameters — consider splitting or grouping - solidity-stablecoin: Add: 'Use for fiat-pegged tokens needing allowlist/blocklist or freezing; differs from solidity-rwa only in contract naming and intent.' Remove the irrelevant namespacePrefix wording. Does not explain how it differs from solidity-rwa; the two schemas are identical The namespacePrefix description mentions upgradeability, which this tool does not support Very long ACE and bridging descriptions No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones Takes 21 parameters — consider splitting or grouping - solidity-governor: Add: 'Pair with a token generated with votes enabled; delay/period accept strings like "1 day" or "2 weeks"; quorumPercent is 0-100.' delay and period are required but have defaults and no stated format beyond examples like '1 day' Does not mention that a matching ERC20Votes/ERC721Votes token is needed (via solidity-erc20/erc721 with votes) quorumPercent range is unspecified (0-100?) No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones Takes 17 parameters — consider splitting or grouping - solidity-erc1155: Change to: 'Make a multi-token contract (fungible and non-fungible IDs) per ERC-1155; prefer it over solidity-erc721 for game items or batch transfers.' Calls ERC-1155 'non-fungible', but it is a multi-token standard that also supports fungible tokens No guidance on choosing it over solidity-erc721 No symbol parameter, which may surprise an agent; this is not noted No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones - solidity-erc20: Add to the description: 'Use for general fungible tokens; for stablecoins or real-world assets with allowlist/blocklist or freezing, use solidity-stablecoin or solidity-rwa.' Also give examples such as premint: "1000000". No guidance on choosing this over solidity-stablecoin or solidity-rwa for ERC-20-based tokens Numeric fields (decimals, premint, premintChainId) are typed as strings with no format example crossChainBridging and chainlinkAce descriptions are very long, with license and URL text an agent doesn't need No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones Takes 19 parameters — consider splitting or grouping - solidity-erc721: Add: 'Use for unique NFTs with one owner per token ID; use solidity-erc1155 for multi-token or semi-fungible collections.' Give a baseUri example such as 'ipfs://.../'. Does not say when to prefer this over ERC-1155 for NFTs baseUri has no format example Defaults for the boolean options are not stated No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones Takes 16 parameters — consider splitting or grouping - solidity-account: Add: 'Generates an ERC-4337 smart account; signer keys are set via constructor/initializer.' Briefly explain that ERC7739 adds replay-safe typed-data signatures. Does not explain how the owner or signers are configured, or whether the generated code leaves them as constructor arguments Deeply nested anyOf for signer is hard to parse, though the description lists the options well The signatureValidation description does not explain how ERC7739 differs from ERC1271 No outputSchema — agents can't tell what the tool returns No readOnlyHint/destructiveHint annotations — clients can't tell safe tools from destructive ones Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.

Get the full detailed report

Every tool's score, what broke, and a suggested fix for each one, sent to your inbox.

Score breakdown

Weighted by what breaks agents in 100M+ real MCP calls.

Error quality

7 bad-input tests · 7 clear errors

87/100 · 20 pts

↳ Clear errors that name the fix get ~3× more successful retries

Task success across agents

opus-5-5: 3/3 · haiku-5-5: 3/3 · gpt-5.5: 3/3 · first-call success 100% · 1.0 calls/task

100/100 · 15 pts

↳ The same tool can fail 0% of the time in one client and 13% in another

Tool count & token cost

8 tools · ~12,846 tokens · 3 overlapping pairs

64/100 · 15 pts

↳ The top 3 tools usually get >99% of calls; the rest just cost context

Schema & docs accuracy

Descriptions 75/100 · 0/8 declare outputSchema

73/100 · 15 pts

↳ Declared output schemas that don't match real output break calls

Response size

median ~352 tokens · p95 ~798 · no limit params

80/100 · 10 pts

↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens

Latency & long calls

median 271ms · p95 332ms · 0 timeouts

100/100 · 10 pts

↳ After a client cancels a long call, ~39% of sessions end

Connection & login

handshake 1084ms · Streamable HTTP

94/100 · 10 pts

↳ After a login or permission error, ~1 in 5 sessions end

Metadata & discoverability

metadata 20/100 · Listed in the official MCP Registry ✕ · mcp.json manifest ✕ · Setup page in the browser ✕

10/100 · 5 pts

↳ The basics. Necessary, but not what makes agents succeed

Error quality

What your errors look like to an agent

We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.

90

Left out a required field · solidity-erc20.name

Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool solidity-erc20: [ { "expected": "string", "code": "invalid_type", "path": [ "

90

Sent the wrong type · solidity-erc20.name

Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool solidity-erc20: [ { "expected": "string", "code": "invalid_type", "path": [ "

90

Left out a required field · solidity-erc721.name

Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool solidity-erc721: [ { "expected": "string", "code": "invalid_type", "path": [ "

90

Sent the wrong type · solidity-erc721.name

Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool solidity-erc721: [ { "expected": "string", "code": "invalid_type", "path": [ "

90

Left out a required field · solidity-erc1155.name

Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool solidity-erc1155: [ { "expected": "string", "code": "invalid_type", "path": ["

90

Sent the wrong type · solidity-erc1155.name

Model sees it · "MCP error -32602: Input validation error: Invalid arguments for tool solidity-erc1155: [ { "expected": "string", "code": "invalid_type", "path": ["

70

Called a tool that doesn't exist · —

Model sees it · "MCP error -32602: Tool __agnost_nonexistent_tool__ not found"

AI agent test

We let a real AI agent use it

3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~22,979 tokens per task on average.

✓

opus-5-5Generate an ERC-20 token contract named 'GreenCoin' with symbol 'GRN' that is mintable and burnable by the owner.

Right tool first try · 8.2s · solidity-erc20

✓

opus-5-5Write a Solidity NFT contract for a collection called 'Pixel Cats' (symbol PCAT) with enumerable and URI storage.

Right tool first try · 9.1s · solidity-erc721

✓

opus-5-5Create a DAO governor contract named 'MyGovernor' with a 1-week voting period and 4% quorum.

Right tool first try · 14.1s · solidity-governor

✓

haiku-5-5Generate an ERC-20 token contract named 'GreenCoin' with symbol 'GRN' that is mintable and burnable by the owner.

Right tool first try · 3.8s · solidity-erc20

✓

haiku-5-5Write a Solidity NFT contract for a collection called 'Pixel Cats' (symbol PCAT) with enumerable and URI storage.

Right tool first try · 4.7s · solidity-erc721

✓

haiku-5-5Create a DAO governor contract named 'MyGovernor' with a 1-week voting period and 4% quorum.

Right tool first try · 8.0s · solidity-governor

✓

gpt-5.5Generate an ERC-20 token contract named 'GreenCoin' with symbol 'GRN' that is mintable and burnable by the owner.

Right tool first try · 4.8s · solidity-erc20

✓

gpt-5.5Write a Solidity NFT contract for a collection called 'Pixel Cats' (symbol PCAT) with enumerable and URI storage.

Right tool first try · 5.7s · solidity-erc721

✓

gpt-5.5Create a DAO governor contract named 'MyGovernor' with a 1-week voting period and 4% quorum.

Right tool first try · 7.8s · solidity-governor

Top 3 fixes

  1. 1

    Correct solidity-erc1155's description: it calls ERC-1155 a 'non-fungible token' standard, but ERC-1155 is a multi-token standard covering fungible and non-fungible tokens. Also add when-to-use guidance contrasting erc20 vs stablecoin vs rwa, and erc721 vs erc1155.

  2. 2

    Add readOnlyHint: true and destructiveHint: false annotations to all 8 tools, since they only return generated source code and never write to disk or deploy. Also add an outputSchema, or state the Markdown code-block return format consistently.

  3. 3

    Document the large parameter sets (19-21 params on erc20/stablecoin/rwa) in the descriptions: which params are required, the access-control options (ownable/roles/managed), and that upgradeable is unsupported for stablecoin/rwa. Finish the truncated 'Experimental, some features are not audited' warnings.

Tool-by-tool report

description · schema, weakest first

Get the full detailed report

Enter your email and we'll send you the full report: every tool's score, what broke, and a suggested fix for each one. It also unlocks here.