Skip to main content
Glama

approvals

Read-only

SPL token approvals: token accounts with an active delegate (SPL Token + Token-2022) — $0.005 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": "approvals"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesSolana wallet address (base58 public key)

Output Schema

NameRequiredDescriptionDefault
okYes
walletNo
approvalsNo
approvals_countNo

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": {
      +    "approvals": {
      +      "items": {
      +        "properties": {
      +          "balance": {
      +            "type": "string"
      +          },
      +          "delegate": {
      +            "type": "string"
      +          },
      +          "delegated_amount": {
      +            "type": "string"
      +          },
      +          "mint": {
      +            "type": "string"
      +          },
      +          "program": {
      +            "type": "string"
      +          },
      +          "token_account": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "approvals_count": {
      +      "type": "integer"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "wallet": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds real behavioral context beyond that: it covers both SPL Token and Token-2022 programs, discloses a $0.005 USDC per-call charge through x402 v2, and names the two payment networks (Solana or Base). Payment/auth requirements are exactly the kind of thing annotations do not convey.

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?

A single sentence, front-loaded with the resource and its scope, then the protocol coverage, then the payment terms. No filler, no restatement of the tool name, and every clause carries information an agent needs.

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?

The tool is low complexity (one param, read-only), an output schema exists so return values need no explanation, and the description covers scope, protocol coverage, and cost. What is missing is guidance on when to prefer this over sibling tools and whether results are current-only or paginated, which keeps it below a 5.

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 and schema coverage is 100%, with the schema stating 'Solana wallet address (base58 public key)' plus a pattern and example. The description adds nothing about the wallet argument, and its mention of 'Solana or Base' refers to payment networks, which could momentarily blur whether the address itself may be a Base address. Baseline 3 applies.

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?

The description names a specific resource and scope: 'SPL token approvals: token accounts with an active delegate (SPL Token + Token-2022)'. An agent knows exactly what data comes back. The verb is implicit (a list/query) and it does not explicitly contrast itself with siblings like tokenSafety or drainForensics, which keeps it from a 5.

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: an agent can infer it should call this when it needs outstanding delegate approvals on a wallet. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g. vs tokenSafety) and no stated prerequisites, so guidance is minimal but not misleading.

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