Skip to main content
Glama

file-checksum

Read-only

Compute SHA-256 checksums for files or whole folders on the host that stores them, enabling local or remote verification and catalog backfills.

Instructions

dbabrain common.cli file-checksum: Files hashed on the host that holds them. Request fields (pass them as request):

  • paths: The files to hash, full paths as that host sees them - or give folder instead.

  • algorithm: sha256 - the only one; stated so another is a choice, not a surprise.

  • host: Where the files are: hostcmd's block {runtime, host, port, access, username, password|key_file, container, pod}. Omit it to hash on this machine.

  • timeout_seconds: Seconds one batch may take; default 3600 - a large FULL hashes at disk speed.

  • folder: Instead of paths: every file under this folder, listed on the host (find, or Get-ChildItem -Recurse) and hashed there - a catalog backfill (0.34.0).

  • include: With folder: file name patterns, case-insensitive ("*.bak"); default every file.

  • container: With folder: the folder is a path inside this container, translated to the host's through its mounts (docker inspect).

  • max_files: With folder: at most this many files (default 5000); more is answered as truncated, never cut silently.

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": "file-checksum"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, the description discloses important behavior: only sha256 is supported, large full hashes run at disk speed, folder mode performs host-side listing and hashing, container paths are translated via mounts, and truncation is reported rather than silent. It does not elaborate on authentication or failure behavior for remote hosts, but the added operational context is substantial.

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?

The description is front-loaded with the core behavior and then organizes request fields in a readable way. It is necessarily detailed for eight request fields, though some phrasing such as the algorithm aside is slightly more verbose than needed.

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?

Given the complex host/container/folder options and the generic input schema, the description supplies enough detail for correct invocation. Return-value explanation is not needed because an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, with only a generic request object, so the description carries the full burden. It explains every listed request field, including paths, host omission, timeout defaults, folder mode, include patterns, container translation, and max_files truncation.

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 a specific verb and resource: hashing files, with the important scope that hashing happens on the host holding the files. It is clear without opening the schema, but it does not explicitly differentiate this tool from sibling file operations such as read-file or copy-files.

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 implies usage through its request-field explanations, especially paths versus folder and omitting host for local hashing. However, it does not explicitly state when to choose this tool over alternatives or when not to use it.

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

Deploy Server

Other Tools