Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Compute file checksum

compute_file_checksum
Read-onlyIdempotent

Compute a single file's MD5, SHA-1, SHA-256, or SHA-512 hash to compare it with a copy or published digest without transferring the file.

Instructions

Compute one file's hash (md5, sha1, sha256 or sha512). Use when: comparing a file with a copy or a published digest without transferring it. Instead: compute_tree_checksums for a folder (or a file, as a list); scan_duplicates to find identical files. Behavior: read-only. Uses the backend's own hash in that algorithm when it has one (e.g. sha256sum over SSH), else streams the file. Refuses secret files. A folder or missing path fails. Time limit: 5 min. Returns: {value (hex digest), algorithm, source (native|stream)}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compute_file_checksum"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe file to hash (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
algorithmNoThe hash algorithm.sha256

Output Schema

NameRequiredDescriptionDefault
valueYes
sourceYes
algorithmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent and non-destructive, and the description still adds substantial behavior: native hash tooling over the backend versus streaming, refusal of secret files, failure on folders or missing paths, and a 5-minute time limit. These are exactly the operational constraints an agent cannot infer from the annotation set.

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?

Labeled clauses (Use when / Instead / Behavior / Returns) keep it scannable and front-loaded, with near-zero waste; the Returns line mildly duplicates the output schema but is short.

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?

For a read-only single-file hashing tool it covers purpose, alternatives, execution mechanics, failure modes and time bound, which is everything needed to call it correctly given the output schema already describes the return shape.

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 path, backend, path_b64 and algorithm are already documented including the base64 substitute rule and the default. The description adds no extra semantics for backend selection or path_b64 beyond restating the algorithm list already present as an enum.

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 (compute one file's hash) and enumerates the supported algorithms, which immediately distinguishes it from tree or duplicate-scan siblings.

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?

An explicit "Use when" clause gives the comparison-against-a-copy-or-published-digest scenario, and "Instead" routes to compute_tree_checksums for folders and scan_duplicates for finding identical files, each with the condition that selects it.

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