Skip to main content
Glama

pin_snapshot

Hashes every file in a folder tree into a pin manifest with a table digest and optional HMAC signature, returning it or writing it to a protected file to detect changes.

Instructions

Hash every file in a folder tree into a pin manifest you keep: a file table with a digest over the table, and an HMAC signature over it when CITADEL_PIN_KEY is set in the environment. Returns the manifest; pass manifest_path to also write it to a file, somewhere the pinned tool cannot rewrite.

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": {
      "path": "<path>"
    },
    "name": "pin_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the folder or file to check.
manifest_pathNoOptional file to write the manifest to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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 substantial work: it discloses that signing is conditional on CITADEL_PIN_KEY being set in the environment, that the manifest is returned by default, and that writing is opt-in via manifest_path. The security rationale ('somewhere the pinned tool cannot rewrite') is genuinely useful context a schema cannot convey, though permissions and behavior for missing/empty paths are unstated.

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?

Content is front-loaded with the core action and the two sentences each carry new information about signing and output. The trailing clause 'somewhere the pinned tool cannot rewrite' is slightly cryptic and mildly interrupts the flow, keeping it off a 5.

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 two-parameter, no-output-schema tool the description covers what is produced, when signing occurs, and where output goes, which is what an agent needs to invoke it. It stops short of describing manifest contents or failure modes for invalid paths, but nothing essential to a correct call 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 coverage is 100%, so the baseline is 3, but the description adds meaning beyond it: it clarifies that path designates a folder tree to be walked (not merely a folder or file), and that manifest_path is an opt-in persistence target with a recommended placement. That is more than restating the schema fields.

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 verb and resource ('Hash every file in a folder tree') and names the artifact produced ('pin manifest'), so the agent knows this creates rather than checks a manifest. It never names the sibling pin_verify, so the create-vs-verify distinction is left to be inferred from the word 'pin' alone.

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?

Guidance exists for the optional write path ('pass manifest_path to also write it to a file'), which is real conditional usage. There is no explicit statement of when to prefer this over pin_verify or when not to use it, so the create-then-verify workflow is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.