Skip to main content
Glama

tdir_probe_files

Inspect source documents and a target template to identify typography, page geometry, and content slots, avoiding hardcoded text, fonts, or record offsets.

Instructions

Dynamically inspect source documents (.docx, .hwp, .hwpx, .md, .csv, .tsv, .xlsx, .html) and target template typography, page geometry, and slots without hardcoding text, fonts, or record offsets.

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": {
      "source_paths": "<source_paths>",
      "target_path": "<target_path>"
    },
    "name": "tdir_probe_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_pathYes
source_pathsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. 'Inspect' implies a read-only operation and 'without hardcoding text, fonts, or record offsets' hints that output is discovered metadata rather than fixed offsets, but it never states whether anything is written, whether target_path is modified, or what the probe returns.

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 front-loaded sentence with no filler; the parenthetical format list is long but genuinely informative. The purpose clause comes first and the 'without hardcoding' qualifier closes it cleanly.

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 probe tool with no annotations, no output schema, and 0% parameter coverage, the description leaves the most important question unanswered: what the inspection actually yields and how that feeds downstream siblings. The agent knows what gets read but not what comes back.

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 0%, so the description must compensate. It does map meaningfully onto both parameters — 'source documents' for source_paths and 'target template' for target_path — and the format list clarifies what source_paths accepts. However, it gives no path conventions or multi-file semantics for the array.

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?

States a specific verb ('inspect') and names both resources (source documents and target template) plus what is inspected (typography, page geometry, slots) and the supported formats. It does not explicitly contrast with siblings like tdir_build_mapping_plan, so the agent must infer the pipeline position.

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?

Usage is only implied: 'dynamically inspect ... without hardcoding' suggests a discovery/probe step that precedes mapping or conversion, but there is no explicit when-to-use, when-not-to-use, or named alternative. The agent must infer that this runs before tdir_build_mapping_plan and tdir_execute_conversion.

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