Skip to main content
Glama

A2UI Atomic Catalog

distill_document

Read-only

Compile a training.md / roadmap markdown document into a live interactive A2UI app — DETERMINISTIC parser, no model involved. Fact sheet: input is MARKDOWN following the training-md contract (frontmatter id/domain/name/source/license + a # Steps section); the text transits to the catalog's stateless parser service for the duration of the call and is NOT stored; lint errors come back as a structured report (fix and re-call). On success the result IS the compiled surface — MCP Apps hosts paint it in the view; other hosts can pass the returned payload to preview_url for a link.

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": {
      "markdown": "<markdown>"
    },
    "name": "distill_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoparse contract to apply (default training)
markdownYesthe full markdown document, frontmatter included

Output Schema

NameRequiredDescriptionDefault
okNoFalse on a lint report; absent on a compiled surface.
errorNoLint errors joined (lint report only).
titleNoSurface title (compiled surface).
errorsNoLint errors (lint report only).
layoutNoLayout nodes of the compiled surface.
warningsNoLint warnings (lint report only).
intake_notesNoWhat the intake shim changed (lint report only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "error": {
      +      "description": "Lint errors joined (lint report only).",
      +      "type": "string"
      +    },
      +    "errors": {
      +      "description": "Lint errors (lint report only).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "intake_notes": {
      +      "description": "What the intake shim changed (lint report only).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "layout": {
      +      "description": "Layout nodes of the compiled surface.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "description": "False on a lint report; absent on a compiled surface.",
      +      "type": "boolean"
      +    },
      +    "title": {
      +      "description": "Surface title (compiled surface).",
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "description": "Lint warnings (lint report only).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a deterministic non-model parser, data transiting a stateless service with no storage, and structured lint errors. The 'deterministic' claim sits in mild tension with idempotentHint=false, though it is defensible since each compiled surface is a distinct live app.

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?

The purpose is front-loaded in the first clause and the remainder is organized as a compact fact sheet covering input, data handling, errors, and output. It is dense but nearly every clause carries signal; only the long em-dash construction is slightly harder to scan than ideal.

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

Completeness5/5

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

For a two-parameter tool with an output schema and full annotations, the description covers everything an agent needs: input contract, privacy behavior, failure mode and recovery loop, and what to do with the result on each host type. No significant gap remains.

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 coverage is 100%, so the baseline is 3, but the description earns more by specifying the required markdown contract in detail (frontmatter id/domain/name/source/license plus a '# Steps' section) and tying the domain enum to a 'training.md / roadmap' selection. This is real meaning the schema does not carry.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compile a training.md / roadmap markdown document into a live interactive A2UI app') and immediately qualifies the mechanism ('DETERMINISTIC parser, no model involved'). An agent can distinguish this from generative surface builders like deck_build or build_multi_page_surface without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: supply markdown obeying the training-md contract, expect a lint report instead of a surface on failure, and fix then re-call. It also routes non-MCP-Apps hosts to preview_url. It stops short of explicitly saying when to prefer this over the other surface-producing siblings, which is why it is not a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.