Skip to main content
Glama

A2UI Atomic Catalog

emit_runbook_surface

Read-onlyIdempotent

Stamp your content through a DECLARED runbook — a pre-authored, judgment-free surface composition. You supply content only; the runbook supplies the composition (which atoms, how arranged, navigation). DISCOVERY: call with runbook_id only (no content) to get that runbook's input_contract + parsing_guide — shape your source data to the contract (parsing is your job as the consumer), then call again with content. Some runbooks also return elicit — questions to ASK THE USER before you fill the contract. Ask them; do not guess the answers. ON SUCCESS YOU GET BOTH payload AND url, AND THEY ARE NOT THE SAME OFFER. payload is the compiled surface — pass it STRAIGHT to render_surface and the reading appears inline, in the conversation, where the reader already is. url is the shareable link, for later or for elsewhere. Default to rendering: handing back only a link makes the reader leave to see the thing they asked for. If the reading was too large to encode as a link you get payload and url_unavailable instead — that is a SUCCESS, so render it and say the link is missing. Available stampable runbooks: (1) learning_hub — curriculum/revision study app: subject tabs, slide pills, timeline/drill/flashcards/quiz/takeaways/method interactions per slide, the full rich hub UI. Prefer this over emit_training_runbook for study/curriculum content — much richer output, still zero composition decisions. (2) article_playbook — a steered critical reading of SOMEONE ELSE'S article: source attribution bar, a hero mental-model card, then rungs down a rail. The reader picks a lens (explain, apply to their domain, challenge, situate in prior art) and says what they want it to look for; the rung progression is Toulmin (claim → grounds → warrant) so the analysis lands on the assumption a summary drops. Use it whenever asked to analyse, critique, tear down, or work out what an article means for a particular domain. You fetch and read the article yourself; nothing is retrieved server-side.

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": {
      "runbook_id": "<runbook_id>"
    },
    "name": "emit_runbook_surface"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoThe source the USER supplied (workspace surfaces pass this; you normally do not). {url?, text?}. Echoed back in the discovery response so you read THAT source rather than asking for it again. Ignored when `content` is present — by then the reading is done.
contentNoYour content shaped to the runbook's input_contract. Omit to get the contract back instead of a URL.
runbook_idYesStampable runbook name. "learning_hub" = curriculum/study app from content you supply. "article_playbook" = a steered critical reading of someone else's article (you fetch and read it yourself; the runbook supplies the composition and the method). Call with this alone, no `content`, to get the contract and any questions to ask the user.
renderer_urlNoYour deployed renderer /exec URL (optional; defaults to the public demo renderer)

Output Schema

NameRequiredDescriptionDefault
noteNoWhat to do next (contract form).
titleNoSurface title (stamped form).
blocksNoThe stamped surface blocks (stamped form).
runbookNoRunbook id (contract form, when no content was given).
parsing_guideNoHow to shape the source (contract form).
input_contractNoWhat the content must look like (contract form).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "blocks": {
      +      "description": "The stamped surface blocks (stamped form).",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "input_contract": {
      +      "additionalProperties": true,
      +      "description": "What the content must look like (contract form).",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "note": {
      +      "description": "What to do next (contract form).",
      +      "type": "string"
      +    },
      +    "parsing_guide": {
      +      "description": "How to shape the source (contract form).",
      +      "type": "string"
      +    },
      +    "runbook": {
      +      "description": "Runbook id (contract form, when no content was given).",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "Surface title (stamped form).",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already establish a safe, idempotent, non-open-world read, and the description goes well past that: it discloses the dual return of `payload` and `url`, why they are not interchangeable, the `url_unavailable` success variant, and the `elicit` field requiring questions to the user before filling the contract. The only real gap is that `renderer_url` and the exact shape of the discovery response are left to the (existing) output 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?

Front-loaded with the core mechanic, then DISCOVERY, then the payload-vs-url rule, then the runbook catalog — a sensible information order with no filler sentences. It is long and typographically loud (heavy ALL-CAPS emphasis) for a four-parameter tool, and the runbook catalog detail could arguably live in a sibling discovery tool, which keeps it short of a 5.

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 nested, enum-bearing, contract-driven tool this covers everything an agent needs: the discovery-first loop, how to feed content, what comes back, and what to do with each return variant, including the failure-shaped success case. An output schema exists, yet the description still supplies the decision-relevant routing between payload and url, which the schema alone would not convey.

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; the description still adds real meaning by explaining that omitting `content` is a discovery mode rather than an error, that parsing source data into the contract is the caller's responsibility, and that `source` is irrelevant once content is present. It never mentions the optional `renderer_url`, which is the one param only the schema covers.

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 — 'Stamp your content through a DECLARED runbook' — and immediately clarifies the division of labour (you supply content, the runbook supplies composition). It explicitly names and contrasts siblings: 'Prefer this over emit_training_runbook' and routes the compiled payload to render_surface, so an agent can place it against alternatives without opening any schema.

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 an explicit two-step workflow (call with runbook_id alone to get input_contract + parsing_guide, shape data, then call again with content) and a per-runbook selection rule: learning_hub for study/curriculum, article_playbook 'whenever asked to analyse, critique, tear down, or work out what an article means for a particular domain.' It also states the default behaviour (render the payload rather than handing back a bare link) and the edge case (url_unavailable is still a success).

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.