Skip to main content
Glama

get_contract_info

Read-onlyIdempotent

What is deployed on a NEAR account, read live from RPC: balance, storage, code hash and size, every method the wasm exports, NEP-330 source metadata (version, source repository and commit, build environment), standards declared or inferred from its methods, FT or NFT metadata, and whether it is a known partner contract, a NEAR Catalog token or the subject of a deprecation entry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account_id": "<account_id>"
    },
    "name": "get_contract_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkNoDefault mainnet.
account_idYesThe account, e.g. "intents.near", "token.rhealab.near".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context by stating the data is read live from RPC, which implies freshness and a network round trip, and it discloses unusual return facets such as inferred standards and deprecation/partner flags. It stops short of covering failure behavior for unknown accounts or RPC rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the operation and scope before the payload enumeration. Given there is no output schema, every clause in the enumeration describes a return field and earns its place; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must carry return-value disclosure itself, and it does so thoroughly across balance, code, exports, NEP-330 metadata, standards and flags. The remaining gap is edge-case behavior for missing accounts or unverified contracts, which is minor for a read-only tool whose annotations already signal safety.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, including a default note on the network enum and an example-bearing account_id description, so the schema already carries parameter meaning. The description adds nothing about network selection or account_id format, which makes the baseline 3 correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and source ('read live from RPC') plus a precisely scoped resource ('what is deployed on a NEAR account'), then enumerates the payload categories. That scope cleanly separates it from siblings like check_code, check_deprecation and get_network_state, which each cover one slice of this data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the phrase 'read live from RPC' hints at a fresh-state lookup versus cached index results, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g. 'for source verification use check_code'). An agent must infer the routing itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources