Skip to main content
Glama

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

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