Skip to main content
Glama
nain-mcp-validator

nain-mcp-validator

verify_content_digest

Verifies whether UTF-8 content matches a supplied SHA-256 digest, confirming artifact integrity through cryptographic hash comparison.

Instructions

Cryptographic content-addressing validation ensuring an artifact or specification matches its immutable SHA-256 digest.

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": {
      "content": "<content>",
      "expected_sha256": "<expected_sha256>"
    },
    "name": "verify_content_digest"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesUTF-8 content string to hash and verify.
expected_sha256Yes64-character hexadecimal SHA-256 digest to compare against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does convey that this is a pure comparison against an immutable digest with no mutation implied. However, it never states what happens on mismatch (exception vs false result) or whether a boolean or structured verdict is returned, which matters since there is no output schema.

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?

A single compact sentence with no redundant wording, and the core purpose is front-loaded. It is slightly jargon-dense ('content-addressing', 'immutable') rather than verb-first, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, fully documented read-style check, the description covers the core operation adequately. The main gap is outcome disclosure: with no output schema, the agent cannot tell whether the tool returns a boolean, a verdict object, or throws on mismatch.

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 both parameters are already documented in the schema and the baseline applies. The description adds the framing that content is hashed and compared, but no format or validation details (encoding, digest length constraints) beyond what the schema states.

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 names a specific operation (cryptographic validation of content against a SHA-256 digest) and the resource it operates on, so its function is unambiguous. It does not explicitly contrast itself with siblings like validate_mesh_invariants, but the digest-verification scope is distinct enough to infer separation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no named alternative tools. The only usage signal is implicit in the phrase 'validation ensuring an artifact or specification matches', leaving the agent to infer when digest verification is the right call versus other validation tools.

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