Skip to main content
Glama

TunnelMind Data API

get_pricing

Spec 097 / ADR-035 Amendment C8. Returns the usage-tiered price schedule for paid calls. Prices are integer strings of USDC atomic units (6 decimals). Rows are {tier, from, to, price_atomic}; to is null for the open tier. anonymous is the price a call without an API key pays. The schedule is the compiled-in default unless a validated override is held in KV (one KV read, no database read); schedule_source says which. band is the floor and ceiling every tier price sits inside. schedule_hash is the sha256 hex of the RFC 8785 canonical schedule, so a consumer can tell when prices change.

counting_rule: the tier is set by settled paid calls per API key in the current UTC calendar month; a call without a key pays the top-tier price; a call counts only after a successful settle; the 402 response quotes the price of the caller's next call. consistency_note: the count is kept in KV, which is eventually consistent, so a tier boundary can drift by a few calls.

Freshness: observed_at is the response time, valid_until is 24 hours later, stale_if_error is 86400 seconds. Add ?receipt=true for a signed Receipt v1.0 over the same payload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
receiptNoWhen true, attach a signed Receipt v1.0 committed to the transparency log. Additive — a signing failure never costs you the observation (ADR-014).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and discharges it well: it discloses the KV-read vs database-read behavior, that the schedule is a compiled-in default unless a validated override exists, that the KV count is eventually consistent so tier boundaries can drift, and precise freshness semantics (observed_at, valid_until, stale_if_error). This is exactly the kind of operational context annotations would otherwise provide.

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?

Purpose is front-loaded and most sentences carry real signal (counting rule, consistency note, freshness). Minor waste exists: the leading 'Spec 097 / ADR-035 Amendment C8' citation is opaque noise for an agent, and the receipt sentence partly duplicates the schema. Overall efficient but not zero-waste.

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?

No output schema and no annotations, yet the description fully describes the return shape (rows of tier/from/to/price_atomic), the schedule_source and schedule_hash semantics, the band floor/ceiling, and the freshness fields. Nothing an agent needs to interpret or trust the payload is missing.

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 description coverage is 100% for the single `receipt` parameter, so the schema already explains its behavior and additive/failure semantics. The description's line 'Add `?receipt=true`' only restates the same idea in query-param syntax, adding little beyond the schema. Baseline 3 per the high-coverage rule is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: 'Returns the usage-tiered price schedule for paid calls.' This is unmistakably distinct from siblings like get_stats, get_freshness, or get_subscription, and it even scopes the audience (paid calls). An agent can place it immediately.

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 infers you call this to learn prices before making paid calls, but the description never says when to use it, when not to, or which sibling (e.g. get_subscription) is the alternative. It also doesn't state prerequisites such as whether an API key is needed to read the schedule.

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