Skip to main content
Glama

buy_pack

Read-only

Get the price and payment instructions for a prepaid pack of queries (sizes 10, 100, 1000, 10000, 100000). One x402 payment returns a token; 1 credit = 1 region in one generate_names call. This tool does not pay by itself.

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": {
      "size": "<size>"
    },
    "name": "buy_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true is already declared by annotations, and the description usefully adds that no payment occurs here and that one credit maps to one region in a generate_names call. It still omits what the returned token looks like, whether it expires, and how it is later consumed, so the added behavioral context is meaningful but partial.

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?

Three short sentences, front-loaded with the tool's output, followed by credit semantics and a scope limitation. Every sentence carries distinct information and none is filler.

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?

There is no output schema, so the description correctly states what is returned (price and payment instructions, plus a token after payment). For a one-parameter query tool this is close to complete, with only the mechanics of redeeming the token left unstated.

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?

With a single enum parameter and 0% schema description coverage, the schema alone conveys the allowed values but not their meaning. The description supplies that context by framing size as the number of queries in a prepaid pack, but it repeats the enum list verbatim rather than explaining pricing tiers or credit yields per size.

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 uses a specific verb ('Get the price and payment instructions') against a specific resource ('a prepaid pack of queries') and enumerates the valid pack sizes. It is unmistakably a quote/instructions tool rather than a payment or credit-check tool, though it never explicitly contrasts itself with the sibling check_credits.

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 implied by 'One x402 payment returns a token' and 'This tool does not pay by itself', which tells the agent this is the pre-payment step. However, no alternative is named and there is no explicit statement of when to prefer this over check_credits or when a pack is unnecessary.

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.