Skip to main content
Glama

Johto Data Context Pack

context_pack
Read-only

POST documents or text chunks plus a token budget. Returns deduplicated, query-ranked, whitespace-compressed context that fits the budget, with source offsets and a token estimate. Deterministic, no LLM. Costs $0.01 USDC per call via x402. Without payment, the call returns the x402 payment requirements; retry with an X-PAYMENT or PAYMENT-SIGNATURE header, or params._meta["x402/payment"].

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": {
      "documents": "<documents>"
    },
    "name": "context_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoQuestion to rank passages against
budgetNoToken budget
documentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false, so the description carries the burden and does add real value: determinism, no LLM, a concrete $0.01 USDC price, and the exact 402 payment-and-retry flow with header names. What it omits is equally behavioral — there is no statement of rate limits, budget bounds/defaults, or failure modes beyond missing payment, and 'POST documents' sits in mild tension with readOnlyHint=true (it is a compute call, not a write, but that is never clarified).

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?

Four short sentences, front-loaded with the operation and return shape before cost and the payment escape hatch. Every sentence earns its place, with no restatement of the tool name or title.

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?

For a paid compute endpoint with no output schema, this covers inputs, output shape, determinism, price, and the exact retry mechanism — enough to call it correctly. It leaves budget semantics (defaults, max, units) and non-payment error behavior unstated.

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?

Schema coverage is 67%, and the description adds meaning the schema does not: budget governs how much output fits, query drives passage ranking, and documents may be chunks with offsets returned. It stops short of giving budget units, defaults, or limits, so the parameter picture is improved but not complete.

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?

States a concrete operation on a concrete resource: submit documents plus a token budget, get back deduplicated, query-ranked, whitespace-compressed context with source offsets and a token estimate. That combination is distinctive enough to separate it from siblings like html_to_rag, url_to_markdown, or document_search without opening any schema.

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: use it when you need ranked passages compressed into a token budget, and use the payment retry path when the first call returns x402 requirements. There is no explicit when-not guidance and no named alternative among the many retrieval/convert siblings.

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