Skip to main content
Glama

export_work

Export whole works of a TLG author to XML, Markdown, or plain text files; omit works to export all, and get the written file paths.

Instructions

Export whole works of a TLG author to files, using Diogenes' TEI XML exporter. format: xml (TEI P5), markdown, or text. Omit works to export every work of the author. Returns the paths written.

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": {
      "author": "<author>",
      "format": "<format>",
      "out_dir": "<out_dir>"
    },
    "name": "export_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
worksNoWork numbers; default all.
authorYesTLG author number.
formatYes
out_dirYesAbsolute directory to write into (created if missing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the key facts: it writes files to a directory, does so via Diogenes' TEI exporter, and returns the paths written. Gaps remain for a write-style operation: nothing says whether existing files are overwritten, whether the export requires Diogenes to be installed or running, or whether large authors are handled in one pass.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and resource, then formats, then the optional-parameter rule, then the return value. No filler or repetition.

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 4-parameter tool with no output schema and no annotations, the description covers the action, format choices, the optional parameter's default, and the return value ('the paths written'). The remaining shortfall is unstated overwrite and environment requirements, which matter for a disk-writing tool.

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 coverage is 75% and the schema already documents works ('default all') and out_dir ('created if missing'), which the description largely restates. The one genuine addition is clarifying that xml means TEI P5; otherwise it adds little meaning beyond the structured fields.

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: exporting whole works of a TLG author to files via Diogenes' TEI XML exporter, with the three output formats enumerated. An agent can tell this apart from a viewer-style tool such as open_in_diogenes because the description names files on disk, though it never explicitly contrasts the two.

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 usage direction is about the optional parameter ('Omit works to export every work of the author'), which is scoping rather than when-to-use guidance. Nothing says when to prefer exporting to files over opening in Diogenes or reading a passage, so the choice is implied rather than stated.

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