NEAR MCP

by nearai
Verified

contract_call_raw_function_as_read_only

Execute read-only contract function calls on the NEAR blockchain using this tool to view contract data without altering the blockchain state.

Instructions

Call a function of a contract as a read-only call. This is equivalent to saying we are calling a view method of the contract.

Input Schema

NameRequiredDescriptionDefault
argsYesThe arguments to pass to the method.
contractIdYesThe account id of the contract.
methodNameYesThe name of the method to call.
networkIdNomainnet

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "args": { "additionalProperties": {}, "description": "The arguments to pass to the method.", "type": "object" }, "contractId": { "description": "The account id of the contract.", "type": "string" }, "methodName": { "description": "The name of the method to call.", "type": "string" }, "networkId": { "default": "mainnet", "enum": [ "testnet", "mainnet" ], "type": "string" } }, "required": [ "contractId", "methodName", "args" ], "type": "object" }
ID: ibzhoz5k4z