Skip to main content
Glama

Compute a file checksum

compute_file_checksum
Read-onlyIdempotent

Computes a file's MD5 or SHA-256 checksum and size so you can verify copies or compare files for identical content.

Instructions

Compute the MD5 or SHA-256 checksum of a file's bytes, with its size. Two files with the same checksum have identical content whatever their names, so use it to confirm a copy or to compare two candidates. Returns path, algorithm, checksum (hex), size_bytes and elapsed_ms. To search a whole folder for duplicates use find_duplicate_media_files. Works on files on disk; needs neither Premiere Pro nor ffmpeg.

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the file.
algorithmNo"sha256" (default) or "md5" (faster, fine for spotting duplicates).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds environment context not in annotations: it operates on files on disk and requires neither Premiere Pro nor ffmpeg, which matters in this host-dependent toolset. It also lists the return fields, though it omits edge behavior such as how a missing or unreadable path is handled.

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?

Four sentences, front-loaded with the operation and its comparison rationale, then the return shape, the sibling alternative, and the environment note. No redundant or filler phrasing.

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?

No output schema exists, and the description compensates by enumerating the returned fields (path, algorithm, checksum, size_bytes, elapsed_ms). With only two simple parameters, complete annotation coverage, and an explicit alternative for the neighboring use case, an agent has everything needed to call it correctly.

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 already documents path and the algorithm enum with the sha256 default, so the description's mention of MD5/SHA-256 largely restates the schema. It adds the framing that a checksum comparison implies identical content regardless of filename, but no path-format or error semantics beyond what the schema gives. Baseline 3 is appropriate.

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 the MD5 or SHA-256 checksum of a file's bytes, with its size') and explicitly separates itself from find_duplicate_media_files for folder-wide dedupe. An agent can identify the tool and its scope without opening the schema.

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?

Gives concrete when-to-use conditions ('confirm a copy', 'compare two candidates') and names the alternative for the other scenario ('To search a whole folder for duplicates use find_duplicate_media_files'). Both the selection and exclusion paths are explicit.

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