Skip to main content
Glama

tdir_verify_fidelity_and_layout

Run SHA-256 text consistency checks and 3-tier cross-platform PDF page-budget verification on generated outputs to confirm fidelity and layout.

Instructions

Run non-whitespace SHA-256 text consistency checks across generated outputs and execute 3-tier cross-platform PDF page-budget verification (MS Word COM / LibreOffice / Built-in PDF 1.4).

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": {
      "job_id": "<job_id>"
    },
    "name": "tdir_verify_fidelity_and_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
export_pdfNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.0

TDQS

C2.9/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, and it does disclose meaningful traits: a three-tier cross-platform fallback (MS Word COM / LibreOffice / Built-in PDF 1.4) and non-whitespace SHA-256 comparison semantics. However, it never states what happens on failure, whether the tool raises or returns a verdict, or what environment dependencies (Word COM availability) affect the result.

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 sentence that front-loads the verification action and packs both checks without filler. It is dense with technical jargon but nothing is redundant.

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

Completeness2/5

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

For a tool with no annotations, no output schema, and zero parameter documentation, the description is thin: it omits the return shape (pass/fail report, mismatch details?) and the meaning of job_id, which is the only required input. An agent could not reliably predict the result format or the failure semantics of a verification tool.

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

Parameters2/5

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

Schema coverage is 0% for two parameters, so the description must compensate and does not: job_id is never mentioned, and export_pdf is only loosely implied by the PDF page-budget verification. The agent cannot tell whether export_pdf triggers a PDF render before verification or merely toggles inclusion of that check.

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 specific operations (SHA-256 non-whitespace text consistency checks) and a specific verification target (PDF page-budget across generated outputs), so the agent knows this is a verification tool rather than a conversion or layout tool. It does not explicitly contrast itself with siblings like tdir_execute_conversion or tdir_adjust_block_layout, so differentiation is left implicit.

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 statement of when to call this tool versus the siblings, no prerequisite such as requiring outputs from a prior conversion step, and no note about when the 3-tier PDF check is appropriate versus skipping it. The agent must infer the placement in the workflow from the name alone.

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