Skip to main content
Glama

Edit root DOC fonts, metrics and encoded text

gdf_text_format_edit
Destructive

Edit free root DOC text in GDF6 or SYM2-6 by adding or changing text, fonts, and metrics using built-in or Windows fonts with explicit width/height and Windows-936 Chinese encoding.

Instructions

Create/change only free root DOC text in GDF6 or standalone SYM2..6. Choose built-in font0..3 or Windows font face,size with explicit width/height. Exact reversible Windows-936 encoding supports Chinese bytes; Chinese requires Windows font. Preserves electrical labels, shared definitions and opaque tails. Verify glyphs with original editor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path within the scope.
confirmNoApply when true; default preview with no write.
projectNoExisting ACF whose directory scopes the files.
workspaceNoWorkspace when no project is supplied.
operationsYesOrdered changes use original offsets. Only free root DOC text is writable.
expectedSha256YesCurrent full SHA-256 from fresh file inspection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a destructive, non-read-only, non-idempotent write, so the safety bar is partly met structurally. The description adds real behavioral context: it preserves electrical labels, shared definitions and opaque tails, states the encoding is exact/reversible for Chinese bytes, notes Chinese requires a Windows font, and recommends verifying glyphs in the original editor. It does not describe write ordering/failure behavior on a SHA mismatch, which keeps it from a 5.

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?

Four dense sentences, front-loaded with the scope/verb and then the encoding constraints; essentially no filler. Density of jargon makes it slightly harder to scan but every sentence carries information.

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

Completeness4/5

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

For a complex, destructive, no-output-schema edit tool this covers scope, alternatives of font selection, encoding rules, preservation guarantees and a verification recommendation. Remaining gaps (error/precondition behavior around expectedSha256, relationship to gdf_text_format_inspect workflow) are minor given annotations cover the safety profile.

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

Parameters4/5

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

Schema description coverage is 100%, so schema already documents syntax and defaults (baseline 3). The description adds cross-parameter meaning not present in the schema — that Chinese bytes in Windows-936 require a Windows font face — and reinforces width/height as explicit glyph/layout metrics rather than font size.

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 and resource — 'Create/change only free root DOC text in GDF6 or standalone SYM2..6' — plus the font/metrics scope, which is more precise than the title alone. The scope restriction ('only free root DOC text', 'Preserves electrical labels...') helps separate it from broader edit tools, but it never names or contrasts with the close siblings gdf_text_edit and gdf_text_format_inspect.

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 implied through the scope constraint and the choices offered ('built-in font0..3 or Windows font face,size', 'Verify glyphs with original editor'), which tells the agent the intended operation shape. However, there is no explicit when-to-use vs gdf_text_edit / gdf_text_format_inspect guidance or prerequisite statement (e.g., run inspect first).

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