Skip to main content
Glama
LaplaceMan

Web3 Assistant MCP

by LaplaceMan

call_contract

Execute smart contract functions on blockchain networks to read data, modify state, or transfer value using contract ABI, address, and function parameters.

Instructions

Call a function in the solidity contract.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
abiYesContract function ABI part, only the relevant function.
networkNameYesBlockchain network name.
contractAddressYesContract address, must start with '0x' and be 40 hex characters long.
functionNameYesFunction name.
argsNoFunction arguments. Make sure no comments are included.
valueNoTransfer native token value when calling payable function. When native token decimal is 18, input 0.001 for 0.001 ETH (1000000000000000 wei). Be careful not to add additional code comments
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure but offers minimal information. It mentions 'call a function' which implies execution, but doesn't address critical aspects like whether this is a read-only view call versus a state-changing transaction, gas costs, error handling, or security considerations. The description is insufficient for a mutation-capable tool with zero annotation coverage.

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 a single, efficient sentence that directly states the tool's purpose with zero wasted words. It's appropriately sized and front-loaded, making it easy to understand at a glance.

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

Completeness2/5

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

For a complex blockchain interaction tool with 6 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what type of function call this performs (view vs. transaction), what happens on success/failure, return values, or security implications. The description should provide much more context given the tool's complexity and lack of structured metadata.

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?

With 100% schema description coverage, the schema already documents all 6 parameters thoroughly. The description adds no parameter-specific information beyond what's in the schema, so it meets the baseline expectation but doesn't provide additional value like explaining parameter relationships or usage patterns.

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

Purpose4/5

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

The description clearly states the action ('call a function') and target ('in the solidity contract'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like analyze_contract_abi or local_wallet_address, which prevents a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There's no mention of when to choose call_contract over analyze_contract_abi or local_wallet_address, nor any context about prerequisites or appropriate scenarios for contract function calls.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LaplaceMan/web3-assistant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server