Skip to main content
Glama

Lean Directory

Firewall-check an unsigned transaction

check_transaction

Decode a serialized Solana transaction (legacy or v0) and check its top-level instructions against a policy: lamport outflow cap, rent floor, program allowlist, authority changes, upgrades, approvals and durable nonces. CPI inner instructions are not simulated and address lookup tables are never fetched over RPC (pass them in addressLookupTables), so prefer the local stdio server for transactions you have not signed.

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": {
      "transaction": "<transaction>"
    },
    "name": "check_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoOverrides of the default firewall policy; omitted fields keep their defaults.
signerNo
encodingNo
transactionYes
trackedAccountsNo
addressLookupTablesNo
signerBalanceLamportsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explicitly discloses that CPI inner instructions are not simulated and that address lookup tables are never fetched over RPC, which are exactly the blind spots that could cause a false 'safe' verdict. It falls short of 5 because it never says what a result looks like (verdict object vs. thrown error on violation) or whether the check is purely local/read-only.

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?

Two sentences, front-loaded with the core action and followed by the critical caveat; almost no wasted words. The policy enumeration is long but each item maps to a real check, so it earns its space.

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?

For a 7-parameter tool with a nested policy object and no output schema, the description covers the main behavioral hazards but omits the return shape and the semantics of signer, trackedAccounts and signerBalanceLamports. An agent could invoke it, but would not know how to interpret the response or what those inputs change.

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 only 14%, so the description must compensate, and it partially does: it names the policy dimensions (outflow cap, rent floor, allowlist, authority changes, upgrades, approvals, nonces) and explicitly instructs passing lookup tables via addressLookupTables. But encoding, signer, trackedAccounts and signerBalanceLamports are given no meaning anywhere, leaving several parameters opaque.

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?

States a specific compound verb ('Decode ... and check') against a precisely named resource ('serialized Solana transaction (legacy or v0)') and scopes it to top-level instructions. The resource is inherently distinct from the sibling checkers (check_mint, check_program), so an agent can route correctly without opening the schema.

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?

The closing clause gives a real usage condition ('prefer the local stdio server for transactions you have not signed'), which tells the agent when this deployment is appropriate. However, there is no guidance on when to use this versus the sibling check tools, and no statement of prerequisites such as needing the full message bytes or resolved lookup tables.

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.