Skip to main content
Glama

Retrieve an item

anthill_retrieve

Pick up an item with a ticket, a link, or a relay code (e.g. "amber-otter-mango-42", typed any way). No profile needed: the item's owner pays. Returns the content (text, or base64 for binary) and its sha256 fingerprint for verification, plus a signed receipt proving the collection. Encrypted items: pass the key (from the sender, or the part after '#key=' in view_url) to get the content unlocked; we use it for this request only. Without it you get the locked bytes as content_base64. Large items return a download_url instead. If the owner is out of credit, pass your own profile_key to pay, or pay this one collection with x402 (USDC on Base; the price includes a payment-processing fee that you pay, not the service).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoThe item's key, if it was stored with encrypt=true.
ticketYesA ticket from anthill_store or anthill_share, a link to one, or a relay code.
profile_keyNoYour profile's secret key (starts with 'anthill_sk_'). Optional if sent as an 'Authorization: Bearer' header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the write side (readOnlyHint=false, destructiveHint=false), and the description adds meaningful behavior: owner pays by default, encrypted items return locked bytes without a key, large items return download_url instead, and out-of-credit fallbacks (profile_key or x402 with a fee you pay). It doesn't state rate limits or idempotency behavior.

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?

Front-loads the core action and scope, then handles edge cases (encryption, large items, payment) in follow-up sentences. Efficient overall, though slightly dense with nested conditionals.

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?

No output schema, and the description compensates by describing the return shape (content text/base64, sha256, signed receipt, download_url). Covers the main retrieval paths and payment fallbacks, though permissions and error conditions aren't detailed.

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%, so all three parameters already carry descriptions. The description adds context around key (unlocked vs locked bytes) and profile_key (only when owner is out of credit, or via header), but doesn't introduce new syntax or format beyond the schema.

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?

States a specific verb+resource: pick up an item with a ticket/link/relay code, and names the source siblings (anthill_store, anthill_share). It distinguishes retrieval from the many write-oriented siblings, though it doesn't explicitly contrast with anthill_delete or anthill_receipts.

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?

Implies usage ('no profile needed', 'pass the key to unlock', 'pass your own profile_key if the owner is out of credit'), which tells the agent when certain parameters are needed. However, it gives no explicit when-not-to-use or alternative-tool guidance.

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