Skip to main content
Glama

file_history

Read-only

What hashn keeps of one file, oldest first: receipts (size, SHA-256 fingerprint, who, when; any file) and, for markdown records with a YAML header, versions (fields and body). Since 2026-11-21 hashn keeps a file as it is now and what was agreed, not every save: you see the saves before that day, any agreed version, and the current one.

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

Input Schema

NameRequiredDescriptionDefault
pathYesThe file whose saves and versions you want.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
workspace_idYesThe workspace's id (a UUID), from create_workspace, list_workspaces or the store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / path / description
      Added value: +"The file whose saves and versions you want."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The workspace's id (a UUID), from create_workspace, list_workspaces or the store."
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds substantive context beyond that. It discloses the retention contract — since 2026-11-21 only the current state and agreed versions are kept, not every save — which directly shapes how an agent should interpret incomplete results. It does not mention pagination or result limits, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with the returned sections, which is the right priority, and little is redundant. However, the retention sentence ('keeps a file as it is now and what was agreed, not every save') is convoluted and requires a second read to parse, which weakens an otherwise efficient two-sentence structure.

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 no output schema, the description carries the return-value burden and does so by enumerating both result sections and their fields, plus the retention caveat that explains gaps in history. For a read-only, low-risk, three-parameter tool with full schema coverage, that is close to sufficient; only ordering/limit behavior is left unstated.

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 each of the three parameters (path, workspace_id, api_token) is already documented in the schema, establishing a baseline of 3. The description adds the framing that the file has both saves and versions, but contributes no additional parameter-level meaning such as path format or workspace scoping behavior.

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 states precisely what the call yields for a single file: `receipts` (size, SHA-256 fingerprint, who, when) and, for markdown with a YAML header, `versions` (fields and body), returned oldest first. The resource and returned artifacts are concrete, but it never names a contrasting sibling such as `read_file` or `changes`, so an agent must infer the boundary from the name 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?

Usage is only implied: the phrase 'one file' scopes it against a workspace-wide history tool, and the schema's path description ('The file whose saves and versions you want') reinforces intent. There is no explicit when-to-use vs. when-not statement and no named alternative for retrieving current content or broader change sets.

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