Skip to main content
Glama

A2UI Atomic Catalog

deck_build

Idempotent

Build a PowerPoint (.pptx) file from a scene list or an A2UI payload. Deterministic (same input, same bytes), nothing is stored or fetched, text is fitted with real font metrics and the file is linted (overlap, bounds, contrast, alt text). Returns the file as an embedded resource plus a report: errors, lint, warnings and unsupported atoms. Opens in PowerPoint and Google Slides (checked in Google Slides). Demo limit: 10 builds a day per connection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "deck_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckNoA typed scene list: {"title","target","scenes":[{"type":"title|bullets|stats|quote|table|media|cta","f":{...fields...},"notes":"speaker notes"}]}. Same scene fields as make_film (eyebrow, headline, sub, kicker, stats as [value,label] pairs, steps/items, quote, name, role, b1/l1, foot). Call deck_schema for every layout and limit. Give deck OR payload.
targetNoWhere the file will be opened. google-slides fits text tighter; powerpoint and any keep a 12% margin for a substituted font. Default any. Ask the user if you do not know.
payloadNoAn A2UI payload {"blocks":[{"type":"quote",...},...]}: each atom with a slide recipe becomes slides, others are listed under `unsupported`, never guessed. deck_schema lists the atoms. Give payload OR deck.
deliveryNoHow the .pptx comes back. link (default): a download link valid for one hour, which works in every client including chat apps that cannot receive attachments. file: the .pptx as an embedded resource, for clients that save attachments (Claude Desktop, Claude Code). both: the two together.
skip_film_onlyNoFor a scene list that came from a film: leave out scenes with no slide layout (chart, chat, word, morph, captions, image) instead of treating them as errors.

Output Schema

NameRequiredDescriptionDefault
okYesTrue when the deck was built.
lintNoLayout lint findings.
bytesNoSize of the .pptx in bytes.
errorsNoProblems that stopped the build.
slidesNoSlides in the deck.
targetNoOutput target.
filenameNoThe .pptx file name.
warningsNoNon-blocking problems.
conversionNoHow a payload was converted, when one was given.
unsupportedNoAtoms the conversion could not carry.
download_urlNoLink to the file, valid for download_expires_in_seconds.
download_expires_in_secondsNoLink lifetime in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "bytes": {
      +      "description": "Size of the .pptx in bytes.",
      +      "type": "integer"
      +    },
      +    "conversion": {
      +      "additionalProperties": true,
      +      "description": "How a payload was converted, when one was given.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "download_expires_in_seconds": {
      +      "description": "Link lifetime in seconds.",
      +      "type": "integer"
      +    },
      +    "download_url": {
      +      "description": "Link to the file, valid for download_expires_in_seconds.",
      +      "type": "string"
      +    },
      +    "errors": {
      +      "description": "Problems that stopped the build.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "filename": {
      +      "description": "The .pptx file name.",
      +      "type": "string"
      +    },
      +    "lint": {
      +      "description": "Layout lint findings.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "description": "True when the deck was built.",
      +      "type": "boolean"
      +    },
      +    "slides": {
      +      "description": "Slides in the deck.",
      +      "type": "integer"
      +    },
      +    "target": {
      +      "description": "Output target.",
      +      "type": "string"
      +    },
      +    "unsupported": {
      +      "description": "Atoms the conversion could not carry.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "warnings": {
      +      "description": "Non-blocking problems.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: deterministic byte-identical output, no storage or fetching, real font-metric text fitting, lint coverage (overlap, bounds, contrast, alt text), compatibility checks in PowerPoint and Google Slides, and a rate limit of 10 builds/day per connection. The rate limit and unsupported-atom handling are exactly the operational facts annotations cannot express.

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 action and artifact, then packed with distinct facts each carrying weight (determinism, linting, compatibility, quota). It is dense to the point of being run-on, but no sentence is filler.

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?

Covers input modes, side effects, validation behavior, compatibility, failure surfacing (unsupported atoms), and quota — strong for a moderately complex build tool with an output schema. The only gap is the return-path wording, which does not align with the delivery default the schema declares.

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 100% and the enum/field descriptions already carry the meaning, including the deck-vs-payload exclusivity and delivery semantics. The description adds little parameter-level detail and its claim that the tool 'Returns the file as an embedded resource' sits at odds with the schema's default of delivery=link, which could mislead on the default return path.

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 artifact: 'Build a PowerPoint (.pptx) file from a scene list or an A2UI payload.' This clearly separates it from deck_schema (which it routes to for layouts/limits) and deck_validate, and an agent knows the two accepted input shapes without opening the 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 concrete routing ('Call deck_schema for every layout and limit'), decision guidance for target ('Ask the user if you do not know'), and a conditional escape hatch for film-derived scene lists via skip_film_only. It stops short of stating when not to use this tool or naming explicit alternatives in the sibling set.

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.