Skip to main content
Glama

Hash a local file

exza_file_hash
Read-onlyIdempotent

Calculate SHA-256 or SHA-512 of one regular file no larger than 256 MiB in the owner-authorized scope. Never changes the file; rejects symlink targets and changing files.

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": "exza_file_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesExplicit existing file/directory path inside the owner-authorized EXZA scope.
algorithmNoHash algorithm; defaults to sha256.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the bar is lower; the description still adds real context the annotations do not carry: the 256 MiB ceiling, rejection of symlink targets, rejection of files being modified during the operation, and the owner-authorized scope. It stops short of describing the output form (hex digest string).

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

Conciseness5/5

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

Two tight sentences, front-loaded with the operation and its limits, and the non-mutation guarantee is placed where an agent will read it first. Nothing is redundant or padded.

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 read-only tool with full schema coverage and annotations, the definition covers the constraints an agent needs to call it successfully. The only omission is the return value (digest encoding/format), which is minor given there is no output schema.

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 coverage is 100% and the enum already constrains the algorithm, so baseline 3 applies. The description adds one useful clarification - the path must resolve to a regular file - which actually tightens the looser schema wording of 'file/directory path', but supplies no further syntax or format detail.

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 (calculate SHA-256/SHA-512 of a single regular file) plus scope and size limits. It is unmistakably distinct from writing or reading tools like exza_read_file and exza_write_file even without naming them.

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 gives operative preconditions (regular file only, <=256 MiB, no symlinks, no changing files) that tell an agent when a call will fail, but it never says when to prefer this over alternatives or what to do instead on rejection.

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