Skip to main content
Glama

Write contract

fuse_write_contract

Signs and submits a state-mutating contract call from the server's signer. ABI is auto-fetched from the Fuse explorer when not supplied. Returns the transaction hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
abiNoOptional ABI override. If omitted, the verified ABI is fetched from the Fuse explorer.
argsNoPositional arguments (defaults to []).
addressYesContract address.
valueWeiNoNative FUSE value to send with the call, in wei (for payable functions).
functionNameYesState-mutating function to call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses state-mutation, server signer usage, auto-ABI fetch, and return of transaction hash. However, it omits important traits like gas estimation, potential failure modes, signer fund requirements, or reversibility. This is insufficient for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, with the core action front-loaded and a secondary detail about ABI fetching. No wasted words; every sentence is informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 5 parameters all described, no output schema, and sibling tools, the description covers the core purpose and return value. However, it lacks explicit differentiation from smart wallet write tools (fuse_smart_call_contract) which could cause confusion. Mostly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with all parameters described. The description adds value by explaining the optional ABI override behavior ('If omitted, the verified ABI is fetched from the Fuse explorer'). This goes beyond the schema but does not address all parameters in depth, maintaining baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Signs and submits a state-mutating contract call from the server's signer.' This distinguishes it from read-only tools like fuse_read_contract and other write tools like fuse_send_erc20.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied (state-mutating calls) but no explicit guidance on when to use this tool versus alternatives like fuse_smart_call_contract or fuse_send_native. No exclusions or when-not-to-use are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources