Skip to main content
Glama

Revision

revision
Read-onlyIdempotent

Fetch one archived commit by its Software Heritage revision id (the 40-hex id, which for a git repository is the git commit sha). Returns the commit message, author and committer with their dates, the directory id of the tree it points at, and its parent commits. Accepts a bare hex id or a full SWHID ("swh:1:rev:"). Because the archive is content-addressed, this keeps resolving after the repository it came from has been renamed, moved or deleted. Sourced from the Software Heritage archive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesRevision id — a 40-character hex sha ("309cf37fe2a781279b7675d4bb7173198e532867") or a SWHID ("swh:1:rev:309cf37f…").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds meaningful context beyond that: content-addressed permanence that keeps resolving after a repository is renamed, moved or deleted, and the source (Software Heritage archive). It stops short of stating rate limits or expected failure modes.

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?

Three sentences, front-loaded with the fetch action and the id, with zero filler. The final 'Sourced from the Software Heritage archive' is slightly redundant with the earlier content-addressed sentence but adds source attribution.

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?

With one required parameter, full schema coverage, and no output schema, the description is appropriately complete: what is fetched, what fields are returned, accepted id formats, and the durability guarantee are all stated. It does not cover error behavior for unknown ids, but nothing major is missing for correct invocation.

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 100% and the schema already documents the id format, so baseline 3 applies. The description nonetheless reinforces that both a bare 40-hex id and a full swh:1:rev:<hex> SWHID are accepted, which matches and slightly enriches the schema's format guidance.

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?

Specific verb (Fetch) plus resource (one archived commit by Software Heritage revision id). The parenthetical clarifying the 40-hex id is the git commit sha removes ambiguity against a generic 'revision' tool, and it clearly stands apart from siblings such as origin_search or resolve_entity.

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?

The description explains what the tool does and the accepting formats, and implies use when you have a SWH revision id or SWHID. However, it never says when NOT to use it or which sibling to prefer for related lookups (e.g., searching by content or resolving entities), leaving selection largely 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.