NEAR MCP

by nearai
Verified

contract_get_function_args

Parse a NEAR contract's ABI or use nearblocks.io API to retrieve likely function call arguments by analyzing recent execution results.

Instructions

Get the arguments of a function call by parsing the contract's ABI or by using the nearblocks.io API (as a fallback). This function API checks recent execution results of the contract's method being queried to determine the likely arguments of the function call. Warning: This tool is experimental and is not garunteed to get the correct arguments.

Input Schema

NameRequiredDescriptionDefault
contractIdYes
methodNameYes
networkIdNomainnet

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "contractId": { "type": "string" }, "methodName": { "type": "string" }, "networkId": { "default": "mainnet", "enum": [ "testnet", "mainnet" ], "type": "string" } }, "required": [ "contractId", "methodName" ], "type": "object" }
ID: ibzhoz5k4z