Skip to main content
Glama

auto_fix_deck

Idempotent

Applies safe, deterministic fixes to a deck (9:16 bold captions, director_preset, missing outro_3d) as a dry-run preview by default, or saves them in place with write=true.

Instructions

Apply safe, deterministic Director Advisor fixes (9:16 bold captions, director_preset, missing outro_3d) to a deck. Dry-run by default: returns {ok, changes, critique, written} and leaves the file untouched; write=true saves the fixed deck in place. Only the three fix types listed here are applied. Run critique_deck first to see the suggestions, and deck_doctor before rendering.

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": {
      "deck": "<deck>"
    },
    "name": "auto_fix_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesPath to the deck JSON file to inspect or fix
writeNoWhen true, save the fixed deck back to the same deck file; when false (default), return the preview of changes without touching the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / write / description
      Previous value: -"Save fixed deck back to disk when true (dry-run preview when false)"New value: +"When true, save the fixed deck back to the same deck file; when false (default), return the preview of changes without touching the file"
  2. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / deck / description
      Previous value: -"Deck path"New value: +"Path to the deck JSON file to inspect or fix"
    • changedInput schema / properties / write / description
      Previous value: -"Save fixed deck back to disk when true"New value: +"Save fixed deck back to disk when true (dry-run preview when false)"
  3. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=true, but the description adds the crucial behavior they don't cover: dry-run is the default and leaves the file untouched, write=true saves in place, and the preview returns {ok, changes, critique, written}. It also bounds scope to three deterministic fix types, which tells the agent the mutation is predictable.

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 dense sentences with no filler: scope first, then default behavior and return shape, then mutation semantics, then workflow. Each sentence carries distinct information an agent needs.

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?

With no output schema, the description usefully names the preview return keys and explains the write path, which is most of what an agent needs for a 2-parameter mutation tool. It is silent on failure behavior (invalid deck path, partial fixes) and on what the `critique` payload contains.

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 description coverage is 100%, so both `deck` and `write` are already documented, including the dry-run default. The description reinforces the dry-run-vs-write distinction but adds no new syntax, path constraints, or format detail beyond the schema, 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 ("Apply ... fixes") and resource ("a deck"), and enumerates exactly what gets fixed (9:16 bold captions, director_preset, missing outro_3d). The closing sentence positions it relative to critique_deck and deck_doctor, so an agent can distinguish it from those siblings without opening a 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 a clear workflow: run critique_deck first for suggestions, deck_doctor before rendering, and it scopes the tool to only three fix types. It does not explicitly state when to avoid this tool (e.g. a deck with unrelated issues, or a deck already fully fixed), so the exclusion guidance is implied rather than stated.

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