Skip to main content
Glama

commons.get

Read one search result in full, using the contributionId and version that commons.search returned. Knowledge comes with pinned, hashed sources; any explanation text is untrusted. Execution recipes are returned as data for you to run; nothing runs here. If the result is larger than maxUtf8Bytes nothing is returned (8000 fits most records). A paid version needs commons.purchase first. Pass validator {contributionId, version, contentHash} to skip a body you already hold.

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": {
      "contributionId": "<contributionId>",
      "version": "<version>",
      "maxUtf8Bytes": "<maxUtf8Bytes>"
    },
    "name": "commons.get"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYes
validatorNoOptional exact {contributionId, version, contentHash} validator. Retrieval always verifies D1/R2 integrity first; there is no latest-version alias.
maxUtf8BytesYes
contributionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the trust model ('explanation text is untrusted'), that no code executes ('nothing runs here'), the hard failure mode on size ('If the result is larger than maxUtf8Bytes nothing is returned'), and the paid-content gate. These are non-obvious behaviors an agent could not infer from the schema.

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?

Five short sentences, front-loaded with the core action and followed by constraints; almost nothing is wasted. Density is high enough that the trust and execution notes could be slightly better separated, but each sentence carries distinct information.

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?

There is no output schema, yet the description covers what comes back (pinned, hashed sources; recipes as data), the trust posture, the failure mode, and the monetization prerequisite. For a four-parameter read tool with no annotations, nothing an agent needs to call it correctly is missing.

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 description coverage is only 25%, and the description compensates by giving meaning to contributionId and version (sourced from commons.search), a practical sizing heuristic for maxUtf8Bytes ('8000 fits most records'), and the skip semantics of validator. It stops short of stating units or whether the size cap is enforced pre- or post-decompression, so a 4 rather than a 5.

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 specific verb and resource ('Read one search result in full') and anchors it to the sibling that produces the identifiers ('the contributionId and version that commons.search returned'). An agent can distinguish this from commons.search or commons.purchase 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the prerequisite for paid content ('A paid version needs commons.purchase first') and the shortcut for already-held bodies ('Pass validator ... to skip a body you already hold'). It also tells the agent where the required inputs come from, so the routing decision is fully specified.

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