Skip to main content
Glama

NEAR MCP

Official

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" }

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/nearai/near-mcp'

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