Skip to main content
Glama

save-robot-output

Saves Claude-generated robot analysis as clean Markdown and rich HTML in a product's assets folder, giving Phase 2 robots and presentations the exact output they need.

Instructions

Save the analysis text that Claude generated for a robot to the product's assets folder.

This is distinct from the prompt payload saved by run-robot. This tool saves the ACTUAL ANALYSIS TEXT Claude produced — the content that Phase 2 robots read as their primary input.

Call this immediately after Claude generates a robot's analysis, passing the clean Markdown and rich HTML versions.

CRITICAL FORMATTING RULE: You must provide TWO versions of your output:

  1. 'cleanMarkdown': Standard, plain Notion-compatible Markdown. No HTML tags, no inline CSS, no elements. This is used by Phase 2 robots and the final PDD.

  2. 'htmlText': The EXACT rich HTML content you rendered in the chat window, including all colored badges, styled divs, and visuals. Do not use dark mode or dark backgrounds; use white or light backgrounds for the HTML files. Wrap every multi-line HTML block and every block in a ```html fence — bare multi-line HTML breaks the saved HTML file.

VERDICT BLOCK RULE: If the robot's output ends with a machine-readable json verdict block (scout, detective, people, money, synthesizer), that block MUST be preserved verbatim as the last element in BOTH cleanMarkdown and htmlText — the Synthesizer and PDD composer parse it. The same applies to Money's Vega-Lite json chart specs. ```json fences are valid plain Markdown and do not violate the no-HTML rule.

File pattern:

  • assets/YYYY-MM-DD--output.md (stores cleanMarkdown)

  • assets/YYYY-MM-DD--output.html (stores htmlText)

IMPORTANT: Call this tool after EVERY Phase 1 robot run if the product will eventually go to Phase 2. Phase 2 robots (user-stories, scope-spec, etc.) read the .md output files to derive their analysis.

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": {
      "productSlug": "<productSlug>",
      "robotName": "<robotName>",
      "cleanMarkdown": "<cleanMarkdown>",
      "htmlText": "<htmlText>"
    },
    "name": "save-robot-output"
  }
}

Input Schema

NameRequiredDescriptionDefault
epicIdNoEpic ID if this output belongs to a specific Epic
htmlTextYesThe rich HTML output exactly as rendered in the chat, keeping backgrounds white or light (no dark mode). Used for the presentation UI.
featureIdNoFeature ID if this output belongs to a specific Feature
robotNameYesWhich robot produced this output
productSlugYesThe product slug
cleanMarkdownYesClean, plain Markdown text without any HTML tags. Used internally by Phase 2 robots.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A4.8/5.0
Behavior5/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 so: it discloses the exact file naming pattern for both artifacts, the downstream consumers of each file, and the hard rule that the trailing ```json verdict block must survive verbatim because the Synthesizer and PDD composer parse it. It also warns about dark-mode backgrounds and bare multi-line HTML breaking the saved file, which are real failure modes an agent could not infer from the schema.

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?

Well front-loaded — purpose, distinction from run-robot, and call timing come first, followed by the formatting rules and file pattern. It is long and leans on ALL-CAPS emphasis and some repetition ('ACTUAL ANALYSIS TEXT', 'IMPORTANT'), but nearly every rule corresponds to a concrete failure mode rather than padding.

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 six-parameter mutation tool with no annotations and no output schema, the definition covers when to call, what the two payloads must contain, where files land, and what downstream depends on them. The only minor omissions are overwrite behavior for repeat runs and the return value, neither of which blocks correct invocation.

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 baseline is 3, but the description adds genuine meaning beyond the schema: it explains the semantic split between cleanMarkdown (plain Notion-compatible, consumed by Phase 2 and the PDD) and htmlText (exact rendered chat HTML, white backgrounds, fenced blocks) and what content must be preserved in each. The optional epicId and featureId are only covered by the schema, which is acceptable at this coverage level.

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 (saves the Claude-generated analysis text into the product's assets folder) and explicitly contrasts itself with run-robot, which saves the prompt payload instead. An agent can distinguish it from save-artifact and save-pdd because the description pins the payload to the analysis text that Phase 2 robots consume.

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?

Gives explicit timing ('Call this immediately after Claude generates a robot's analysis') and a clear conditional ('after EVERY Phase 1 robot run if the product will eventually go to Phase 2'). It also names the sibling it is not (run-robot) and explains why the alternative does not cover this need.

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