Skip to main content
Glama

idea_to_deck

Converts an idea from generate_ideas into a validated deck JSON file saved to decks/.json, preventing overwrites unless allowed. Use it instead of hand-writing deck JSON.

Instructions

Save one idea object from generate_ideas as a validated deck JSON at decks/.json. Writes a file and refuses to overwrite an existing deck unless overwrite=true (IdeaDeckExistsError). Returns {ok, slug, path, slides}. Next steps: deck_doctor, then render_deck. Use this instead of hand-writing deck JSON.

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": {
      "idea": "<idea>"
    },
    "name": "idea_to_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
ideaYesIdea object returned by generate_ideas
slugNoOptional target deck slug (defaults to slug derived from idea title)
overwriteNoAllow overwriting an existing decks/<slug>.json file when true

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / overwrite / description
      Added value: +"Allow overwriting an existing decks/<slug>.json file when true"
    • addedInput schema / properties / slug / description
      Added value: +"Optional target deck slug (defaults to slug derived from idea title)"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare it is a non-idempotent, non-destructive write; the description adds that it writes a file, refuses to clobber an existing deck unless overwrite=true, names the error (IdeaDeckExistsError), and describes the return payload {ok, slug, path, slides}. That is precisely the extra behavior an agent needs beyond the hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action and path, followed by the failure mode, the return shape, and the workflow chain. No redundant or filler wording.

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 file-writing tool with no output schema, the description supplies the return payload, the failure case, overwrite semantics, and the follow-up tools. An agent has everything needed to call it correctly and know what comes next.

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 schema already documents idea, slug (default derived from title) and overwrite. The description reinforces the idea object's origin and the overwrite-refusal consequence but adds little new per-parameter detail, so the baseline of 3 applies.

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 ('Save one idea object ... as a validated deck JSON') plus the exact output location (decks/<slug>.json) and the source object (generate_ideas). This distinguishes it cleanly from siblings like render_deck or build_publish_pack.

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 to use it 'instead of hand-writing deck JSON', states the required ordering ('Next steps: deck_doctor, then render_deck'), and gives the condition under which the overwrite path applies. When-to-use, sequencing, and the alternative are all named.

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