Skip to main content
Glama

Get allowance

get_allowance
Read-onlyIdempotent

How much you can still spend right now, before you pay: your API key's remaining today and per-request cap, and your wallet allowance's remaining today, per-purchase cap and approval on Base or Solana, each with spendableNowUsd and bindingLimit (the limit that would refuse a larger call). Owner can pause or Revoke the allowance on Base or Solana; Solana daily and per-purchase limits are server-checked. Read-only: it cannot change a limit. Free, but needs your API key.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, yet the description still adds substantial context beyond them: the API key is required, the call is free, Solana daily and per-purchase limits are enforced server-side, an owner may pause or revoke the allowance, and bindingLimit is defined as the limit that would reject a larger call. It also names the returned fields (spendableNowUsd, bindingLimit), which matters because there is no output schema.

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 key value proposition is front-loaded in the opening clause, and nearly every phrase carries information. However, the middle is a long semicolon-chained run-on dense with domain jargon, and the closing "Read-only: it cannot change a limit" largely restates the annotations.

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?

With zero parameters, no output schema, and safety already covered by annotations, the description supplies everything an agent needs: what is returned, what the fields mean, that the call is free but authenticated, and that Solana limits are server-authoritative. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters and the input schema is an empty object, so there is no parameter meaning to convey. Baseline 4 applies since the description correctly implies the call is parameterless by describing scope as implicit from the API key and wallet.

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 states a specific resource (allowance) and enumerates its parts: API key remaining budget and per-request cap, plus wallet allowance remaining budget, per-purchase cap, and approval status on Base or Solana. It is clearly a read of spending headroom rather than a balance or a limit list, but it never distinguishes itself from the sibling get_limits or get_balance, which an agent could easily confuse with this.

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?

"How much you can still spend right now, before you pay" gives a concrete trigger for calling it, and "each with spendableNowUsd and bindingLimit (the limit that would refuse a larger call)" tells the agent what decision the result supports. There are no explicit exclusions or named alternatives, so it stops short of full routing guidance.

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.