Skip to main content
Glama

tdir_execute_conversion

Executes SADT (T-DIR v4.1) document conversion into HWP, HWPX, DOCX, Markdown, CSV, XLSX, HTML, or PDF using dynamically resolved specifications and optional overrides for text-preserving output.

Instructions

Execute SADT (T-DIR v4.1) conversion into target formats (.hwp, .hwpx, .docx, .md, .csv, .xlsx, .html, .pdf) using dynamically resolved specifications and optional user_spec_overrides with high-fidelity text preservation.

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>",
      "output_prefix": "<output_prefix>"
    },
    "name": "tdir_execute_conversion"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
output_prefixYes
base_hwpx_pathNo
output_formatsNo
user_spec_overridesNoExplicit user or target specification overrides (Priority 1 > Target Template > Source File). Any omitted field automatically inherits from the target template or source document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it never states whether the call writes files to disk, where output_prefix lands, whether existing files are overwritten, or how long a conversion takes. 'High-fidelity text preservation' is the only behavioral claim and it is not operationalized. For an executing/mutating tool with zero annotation coverage this is a substantial gap.

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 the verb first and the format list embedded; nothing is redundant. It is dense but not padded, though the parenthetical version tag ('T-DIR v4.1') buys the agent little.

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?

This is a complex multi-format conversion executor with a nested override object, no output schema, and no annotations, so the description needed to explain preconditions, side effects, and return shape. It covers only the format list and the existence of overrides, leaving an agent unable to predict what happens on success or failure.

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 description coverage is only 20%: job_id, output_prefix, base_hwpx_path, and output_formats have no schema descriptions, and the description explains none of them (it only implies output_formats by listing extensions). It does mention user_spec_overrides, but that subtree is already richly documented in the schema, so the description adds meaning where it is least needed and omits it where the schema is silent.

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 verb ('Execute') and resource ('SADT (T-DIR v4.1) conversion') and enumerates the concrete output formats it produces, so the agent knows what the call yields. It does not, however, contrast itself with the sibling tools (build_mapping_plan, verify_fidelity_and_layout), and 'SADT' is internal jargon, so the action is clear only in outline.

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?

No when-to-use guidance is given: nothing says this runs after tdir_build_mapping_plan, that a valid job_id must already exist, or that tdir_verify_fidelity_and_layout should follow. The description also gives no conditions under which to prefer or avoid this tool, leaving the agent to infer the whole workflow.

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