Skip to main content
Glama

drainForensics

Read-only

Wallet activity review: last 25 transactions with status, failed txs flagged, plus current token delegates (for drain triage) — $0.0025 USDC per call via x402 v2 (Solana or Base).

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": {
      "wallet": "<wallet>"
    },
    "name": "drainForensics"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesSolana wallet address (base58 public key)

Output Schema

NameRequiredDescriptionDefault
okYes
noteNo
walletNo
failed_countNo
active_delegatesNo
recent_transactionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / wallet / description
      Added value: +"Solana wallet address (base58 public key)"
    • addedInput schema / properties / wallet / example
      Added value: +"4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
    • addedInput schema / properties / wallet / pattern
      Added value: +"^[1-9A-HJ-NP-Za-km-z]{32,44}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "active_delegates": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "failed_count": {
      +      "type": "integer"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "recent_transactions": {
      +      "items": {
      +        "properties": {
      +          "blockTime": {
      +            "type": "integer"
      +          },
      +          "signature": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "wallet": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description adds real value on top: the bounded result set (last 25 transactions), the flagging of failed transactions, and the x402 v2 payment requirement of $0.0025 USDC per call on Solana or Base. Cost and payment rail are exactly the kind of context an agent needs and would not get from the annotations.

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?

One dense sentence with the payload scope front-loaded and pricing last, so nothing is wasted. The heavy em-dash stacking makes it slightly harder to parse on a first read, but no sentence 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?

For a one-parameter read-only tool with an output schema, the definition covers scope, chain, payment mechanism, and the intended triage use case. The main residual gap is that 'token delegates' and the drain-triage framing are not explained further, leaving the interpretation of the returned delegate data to the output schema.

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?

There is a single required parameter with 100% schema description coverage (base58 Solana wallet address with pattern and example), so the schema does the work. The description adds no semantics beyond it, which is the expected baseline here.

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 specific resource and scope: the last 25 transactions with status, failed transactions flagged, plus current token delegates. That is concrete enough to separate it from siblings like balance or txtrace, though it never names a sibling and 'drain triage' framing overlaps with what approvals might cover.

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 phrase '(for drain triage)' implies the situation it is meant for, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as approvals or txtrace when the question is about a single transaction rather than a wallet sweep.

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