Skip to main content
Glama

create_comment

Build an S1000D comment data module (comment.xsd) with type, priority, paragraphs, originator, and sender; verify it against XSD and BREX, then write it to the CSDB only when requested.

Instructions

Build a comment data module (comment.xsd): a remark about data modules, publication modules, DMLs or DDNs, with the type (q / i / r), the priority code (cp01–cp99), paragraphs, the originator and the sender. The enumerations are written as given and not interpreted. The sequence number defaults to the next free one in the CSDB. The XML is verified (comment.xsd, BREX). Returns xml, fileName, commentCode, verification, fixes[]. Writes only when write is true.

Input Schema

NameRequiredDescriptionDefault
refsNoWhat the comment is about (all of one kind). Empty: noReferences.
titleNo
writeNoWrite the result into the CSDB (the first folder of csdbDirs / S1000D_CSDB_DIR). Default false: the XML is only returned. Nothing is written when the XML is not valid against the XSD unless allowInvalid is true.
remarksNo
csdbDirsNoCSDB folders (in addition to S1000D_CSDB_DIR) used to resolve references, find BREX and number new objects. The FIRST folder is also where write: true writes.
languageYes言語(language 要素)
maxFixesNoCap on the remaining fixes listed in the response (default 50).
brexDmRefNoBREX the comment follows (default: the default BREX in S1000D_SPEC_DIR).
issueDateNoYYYY-MM-DD (default today).
issueTypeNo
overwriteNoWith write: true, replace a file of the same name. Default false: an existing file is left alone and reported as write-conflict.
seqNumberNoDefault: the next free number in the CSDB.
originatorYes
paragraphsYessimplePara texts, written as given.
commentTypeYes
senderIdentYesSender enterprise code (5 characters).
allowInvalidNoWith write: true, write even when verification.schema.state is "invalid". Default false.
responseTypeNort01–rt99. Omit for no commentResponse.
modelIdentCodeYes
yearOfDataIssueNoDefault: this year.
commentPriorityCodeYes
securityClassificationYes01–99, written as given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that enumerations are passed through uninterpreted, that the sequence number defaults to the next free one in the CSDB, that output is verified against comment.xsd and BREX, that the response contains xml/fileName/commentCode/verification/fixes[], and that nothing is written unless write is true. It omits overwrite-conflict and allowInvalid semantics, though the schema covers those.

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 with the resource identity front-loaded and no filler. The first sentence is long and packs the field list into one clause, but every clause carries information an agent needs.

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 22-parameter, deeply nested tool with no output schema, the description supplies the return shape (xml, fileName, commentCode, verification, fixes[]) and the write-safety model, which are the two biggest gaps. Missing pieces — directory resolution and invalid-write override — are already documented on the corresponding schema properties.

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 68%, so the schema does most of the work for the 22 parameters. The description adds real meaning for a few — comment type (q/i/r), priority range cp01–cp99, paragraphs, originator/sender, and the seqNumber default — but leaves the majority of parameters (refs, csdbDirs, brexDmRef, responseType, maxFixes) to the schema.

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 — build a comment data module (comment.xsd) — and defines the resource precisely as a remark about data modules, publication modules, DMLs or DDNs. It does not explicitly contrast itself with the sibling build_data_module, so an agent must infer the split from the resource noun rather than from a stated exclusion.

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?

The only conditional guidance is 'Writes only when write is true', which is about mode rather than tool selection. There is no statement of when to prefer this over build_data_module, nor prerequisites such as an existing CSDB or BREX. Usage is implied by the resource description alone.

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