Celina/Tools/Contract/execute-contract-function
writeContractStdio only

Execute Contract Function

execute_contract_function

Call a state-changing function on any Celo mainnet contract using a caller-supplied ABI fragment and positional args (like viem). Optional value is wei as a decimal string. Prefer estimate_contract_gas first. Requires CELO_PRIVATE_KEY in your MCP client env (stdio only).

§ Inputs

NameTypeDescription
contract_addressRequiredstringcontract address
function_nameRequiredstringfunction name
abiRequiredarrayContract ABI as a JSON array
function_argsarrayfunction args
valuestringvalue

§ Returns

{ network, hash, status, from, contractAddress, functionName }

§ Try saying

  • Call approve(spender, 0) on USDm with the ERC-20 ABI.
  • Execute mint() on contract 0x… with ABI JSON and args.

Use this tool

Once Celina is wired into your MCP client, just ask in plain language. The LLM picks execute_contract_function automatically.