Skip to main content
Glama

Prompt allowance

prompt_allowance
Read-onlyIdempotent

Read remaining prompt units before generating. This does not use credit.

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": "prompt_allowance"
  }
}

Input Schema

NameRequiredDescriptionDefault
guest_tokenNoPrivate owner token returned by guest creation. Sent in X-Guest-Token; reuse it for this owner's resources.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / guest_token / description
      Added value: +"Private owner token returned by guest creation. Sent in X-Guest-Token; reuse it for this owner's resources."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so safety is covered. The description adds a genuinely non-obvious behavioral fact beyond them: "This does not use credit", which tells the agent that polling this endpoint is free and safe to repeat, removing a common hesitation about calling quota endpoints.

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 action front-loaded and the cost caveat immediately after. Every clause carries information an agent would otherwise have to guess.

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 one-optional-parameter read tool this is close to sufficient, but with no output schema the description should hint at the return shape (remaining units count, whether zero/quota-exhausted is signalled) so the agent knows how to interpret the response. It also leaves "prompt units" undefined relative to credits or plan quotas.

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 coverage is 100% and the single guest_token parameter is already documented thoroughly in the schema, including the X-Guest-Token header binding and reuse semantics. The description adds nothing about the parameter or its optional nature, so the 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?

"Read remaining prompt units" gives a specific verb (read) and resource (prompt units/allowance), so the agent knows this is a quota-inspection call rather than a generation call. It is distinguishable from billing/pricing siblings by the word "prompt", though it never names those siblings explicitly.

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?

"before generating" implies the when-to-use condition: as a pre-flight quota check ahead of a generation call. However, it never clarifies when not to use it, nor does it point to alternatives like billing or pricing for plan/credit information, leaving the agent to infer the boundary.

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.