Skip to main content
Glama

cast_rpc

Send a raw JSON-RPC request to any network when a specific RPC method isn't covered by other tools, enabling custom on-chain queries.

Instructions

Send a raw JSON-RPC request (cast rpc). Escape hatch for any RPC method not covered by other tools.

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": {
      "method": "<method>",
      "rpcUrl": "<rpcUrl>"
    },
    "name": "cast_rpc"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYesJSON-RPC method name, e.g. eth_getBlockByNumber
paramsNoMethod parameters as strings
rpcUrlYesRPC URL of the network

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Raw' hints that the call bypasses validation, but nothing says the method may be a mutating one (e.g. sending a transaction), that arbitrary methods are permitted, whether errors are surfaced as values, or what the response looks like. For an unannotated passthrough to arbitrary RPC endpoints, that is a substantial gap.

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?

Two short sentences, zero filler, with the core action stated first and the fallback role immediately after. Nothing could be removed without losing routing information.

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

Completeness3/5

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

The parameters are fully self-documenting and no output schema exists, so the description need not describe return values. However, with no annotations and no output schema, the definition leaves the agent without any statement about response shape or error behavior for an arbitrary RPC call, which is the main thing an escape hatch needs to spell out.

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%, with each of method, params, and rpcUrl documented in the schema itself, so the baseline of 3 applies. The description adds nothing about how params should be encoded beyond what the schema already says (strings), and does not explain that params are positional and method-dependent.

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

Purpose4/5

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

States a concrete verb and resource ('Send a raw JSON-RPC request') and explicitly frames itself as the generic fallback for RPC methods no other tool covers. That framing lets an agent distinguish it from the many specific cast_* siblings without opening any schema. It stops short of naming any sibling, so the differentiation is by category rather than by example.

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?

'Escape hatch for any RPC method not covered by other tools' is an explicit selection rule: prefer a dedicated tool, fall back here. It gives no explicit when-not beyond that, and no guidance on ordering among the specialized siblings, but the routing condition is clear enough to act on.

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