Skip to main content
Glama

import_markdown

Destructive

Convert structured Markdown presentations into validated DUP Presenter deck JSON; preview and validate by default, then write deck files when enabled.

Instructions

Convert a Markdown presentation (YAML front matter with slug/lang/theme/aspect/caption_style/burn_captions, followed by '## [hero_3d|outro_3d|kpi|timeline] Title' slide headings, voice:/tag:/subtitle:/url:/tagline: lines, and '- left :: right' bullets) into a validated DUP Presenter deck JSON. Dry-run by default: write=false parses and validates without writing to disk; write=true writes decks/.json. Refuses unsafe slugs, unknown keys/slide types with line numbers, oversized input (>300 KB), or overwriting an existing deck unless overwrite=true. Use idea_to_deck when starting from a JSON idea instead of Markdown.

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": "import_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
writeNoWhen true, write decks/<slug>.json; when false (default), validate and return the preview only
markdownYesMarkdown document starting with '---' front matter (slug, lang, theme, aspect, caption_style, burn_captions) and slides headed by '## [hero_3d|outro_3d|kpi|timeline] Title'
overwriteNoAllow replacing an existing decks/<slug>.json when write=true (default false refuses)

Output Schema

NameRequiredDescriptionDefault
okYes
pathYes
slugYes
slidesYes
writtenYes
slide_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.12

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it is a destructive, non-idempotent writer; the description goes much further by naming the refusal conditions (unsafe slugs, unknown keys/slide types reported with line numbers, >300 KB input, existing-deck protection) and the overwrite escape hatch. That is exactly the mutation-safety context an agent needs before setting write=true.

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?

Front-loaded with the core verb and resource, then behavior and refusal rules in descending importance. The embedded grammar spec (front matter keys, slide heading pattern, voice:/tag: lines) partly duplicates the markdown parameter description, making it denser than strictly necessary.

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?

With three simple parameters, full schema coverage, and an output schema covering the validated deck preview, the description needs only input grammar and side-effect rules, and it supplies both. Nothing required to call it correctly is missing.

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 reinforces the semantics of write as validate-vs-write and explains that overwrite only matters when write=true. It adds light context rather than new syntax, so it sits just above baseline.

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 precise verb and direction (convert Markdown presentation into a validated DUP Presenter deck JSON) and enumerates the exact input grammar. It also names the sibling it is not (idea_to_deck for JSON ideas), so an agent can pick between the two without opening schemas.

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

Usage Guidelines5/5

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

Explicitly says it is dry-run by default (write=false validates only, write=true writes decks/<slug>.json) and routes the JSON-idea case to idea_to_deck. The conditions selecting each mode and the alternative tool are both stated, not inferred.

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