Skip to main content
Glama

explain_error

Read-onlyIdempotent

Paste a NEAR error (RPC response, transaction failure, contract panic, CLI output) and get its cause and fix: matched against a catalog of common NEAR errors whose explanations are checked against docs.near.org on every sync, the deprecation entries for any API or package the error names (e.g. a removed action), and forum threads and GitHub issues that quote the same error. Needs the error text itself.

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": {
      "error_text": "<error_text>"
    },
    "name": "explain_error"
  }
}

Input Schema

NameRequiredDescriptionDefault
error_textYesThe error message or response, as printed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description goes further by disclosing how the answer is produced: a catalog validated against docs.near.org on every sync, plus deprecation entries, forum threads, and GitHub issues that quote the same error. It never states the response shape or what happens on an unmatched error, which keeps it below a 5.

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

Conciseness4/5

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

The core action is front-loaded in the first clause, and every subsequent clause adds real information about sources. It is compressed into one long run-on sentence, so the middle catalog/sync clause is harder to parse than it needs to be.

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

Completeness5/5

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

There is no output schema, and the description compensates by saying the return covers cause, fix, relevant deprecation entries, and related forum/GitHub discussions. For a single-parameter, read-only lookup tool, an agent has everything needed to decide to call it and what to pass.

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 description coverage is 100% for the single parameter, so the schema already defines error_text, its 6–8000 length bounds, and that it should be 'as printed'. The description only adds the kinds of input accepted (RPC response, panic, CLI output) and the 'needs the error text itself' emphasis — useful but marginal over the schema.

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 opens with a concrete verb and resource: paste a NEAR error, get its cause and fix. It even enumerates the accepted error shapes (RPC response, transaction failure, contract panic, CLI output), which makes it immediately distinguishable from siblings like check_code, find_known_issues, or check_deprecation.

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

Usage Guidelines4/5

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

It states the triggering condition clearly — you have an error and need an explanation — and adds the prerequisite that the error text itself is required. It does not explicitly say when to prefer a sibling (e.g. check_deprecation for a bare API name), so it stops short of full when/when-not routing.

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