Skip to main content
Glama

One capability: who offers it, and what it costs

get_capability
Read-only

Every indexed endpoint that does this job, with the market's going rate. price.spot is the call-WEIGHTED price, not the median — a median counts one wallet's forty near-identical listings as forty votes for its price. Check price.spot_basis: median means no offer reported any calls and the figure is a fallback, which does not mean the same thing as a market rate. truncated: true means the offer list is a floor. catalog_read_at says when the figures were read.

Wraps GET /v0/unified/{slug}. Access: no API key required.

Returns:

  • capability: The registry entry: the job, its priced unit, and its canonical request/response.

  • price: Going rate (spot), its basis, and the min / p25 / median / p75 / max spread.

  • stats: How many offers, distinct providers, distinct hosts, and how many were answering when last probed.

  • models: For inference capabilities: which model families are sold here, and by how many providers.

  • offers: Each endpoint, its listed price, its index against spot (100 = the going rate), and its reported 30-day demand.

  • truncated: True when the candidate read hit its cap, so the offer list is a floor rather than the whole market.

  • catalog_read_at: When the catalog rows behind these figures were read. A capability is read at most once an hour and answered from that read in between.

  • stale: True when that read is over an hour old and a newer one is not in yet. Never older than a day: past that the endpoint answers 503 instead.

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": {
      "slug": "<slug>"
    },
    "name": "get_capability"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesCapability slug, from `/v0/unified`.
limitNoRows to return. Clamped to 200; values outside the range are clamped, not rejected.
probableNoInclude endpoints the matcher was not confident about. Off by default: grouping two endpoints that do different jobs invents a cheaper competitor that does not exist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses the caching model (read at most once an hour), the stale flag, and the hard 503 past one day — operationally critical facts unavailable anywhere else. It also explains that price.spot is call-weighted rather than median, that spot_basis=median signals a fallback rather than a market rate, and that truncated:true makes the offer list a floor, which prevents concrete misreadings of the result.

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 most decision-relevant caveats (weighted price, spot_basis, truncation, cache freshness) are front-loaded before the access and returns sections, and the returns list earns its space because no output schema exists. It is long but nearly every sentence carries unique semantic weight; only minor tightening is possible.

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 no output schema, the enumerated returns (capability, price, stats, models, offers, truncated, catalog_read_at, stale) fully specify the response shape. Combined with the caching and error semantics, an agent has everything needed to call this correctly and interpret edge cases.

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%, so slug, limit's clamping behavior, and probable's grouping rationale are already documented in the schema. The description adds nothing parameter-specific, which makes the baseline 3 appropriate.

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 opens with a specific statement of scope — 'Every indexed endpoint that does this job, with the market's going rate' — which pins down the resource (one capability) and the payload (offers plus pricing). It never names a sibling such as list_capabilities, but the singular 'one capability' framing implicitly separates it from catalog-wide listing tools.

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 rather than stated: an agent infers it should call this when it needs the market rate or the offer set for a single capability. There is no explicit when-not guidance or named alternative (e.g. recommend_capability_offers, list_capabilities), so the selection reasoning is left to inference.

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