NEAR MCP

by nearai
Verified

contract_call_raw_function

Call a contract function directly as a raw transaction, specifying arguments, gas, and attached deposit in NEAR blockchain through NEAR MCP server.

Instructions

Call a function of a contract as a raw function call action. This tool creates a function call as a transaction which costs gas and NEAR.

Input Schema

NameRequiredDescriptionDefault
accountIdYesThe account id of the signer.
argsYesThe arguments to pass to the method.
attachedDepositNoThe amount to attach to the function call (default to 1 yoctoNEAR). Can be specified as a number (in NEAR) or as a bigint (in yoctoNEAR).
contractAccountIdYesThe account id of the contract.
gasNoThe amount of gas to use for the function call in yoctoNEAR (default to 30TGas).
methodNameYesThe name of the method to call.
networkIdNomainnet

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "accountId": { "description": "The account id of the signer.", "type": "string" }, "args": { "additionalProperties": {}, "description": "The arguments to pass to the method.", "type": "object" }, "attachedDeposit": { "default": 1.0000000000000001e-24, "description": "The amount to attach to the function call (default to 1 yoctoNEAR). Can be specified as a number (in NEAR) or as a bigint (in yoctoNEAR).", "type": [ "number", "integer" ] }, "contractAccountId": { "description": "The account id of the contract.", "type": "string" }, "gas": { "description": "The amount of gas to use for the function call in yoctoNEAR (default to 30TGas).", "format": "int64", "type": "integer" }, "methodName": { "description": "The name of the method to call.", "type": "string" }, "networkId": { "default": "mainnet", "enum": [ "testnet", "mainnet" ], "type": "string" } }, "required": [ "accountId", "contractAccountId", "methodName", "args" ], "type": "object" }
ID: ibzhoz5k4z