Skip to main content
Glama

deck_doctor

Read-onlyIdempotent

Check a video deck before rendering for schema errors, Cyrillic in English decks, missing screenshots or music, overwrite risk, and length/render-time estimates; fix errors before render.

Instructions

Pre-render diagnostics without rendering: schema check, Cyrillic in EN decks, missing screenshots or music, overwrite risk, length and render-time estimates. Read-only. Returns {ok, errors, warnings, estimates}. Run it before render_deck; render_deck refuses when errors are present.

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": "deck_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck path (e.g. decks/radar-cosmic-v4-en.json)
overwriteNoTreat an existing out/<slug>.mp4 as allowed instead of flagging an overwrite error

Output Schema

NameRequiredDescriptionDefault
okYes
errorsYes
warningsYes
estimatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.5
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "errors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "estimates": {
      +      "type": "object"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "errors",
      +    "warnings",
      +    "estimates"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / overwrite / description
      Added value: +"Treat an existing out/<slug>.mp4 as allowed instead of flagging an overwrite error"
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description still adds real value by noting it works without rendering (no cost/side effects) and by disclosing the cross-tool gating behavior in render_deck. The 'Read-only' restatement is redundant, and the return-shape sentence duplicates the 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?

The check list is front-loaded and the gating rule follows immediately, with very little wasted text. The literal return-shape notation is the one sentence that duplicates structured data already available via the output schema.

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 read-only diagnostic tool with full schema coverage and an output schema, the description covers cost (no render), scope of checks, the workflow position before render_deck, and the failure gate. Nothing an agent needs to call it correctly is missing.

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 parameters are already documented in the schema. The description's mention of 'overwrite risk' loosely connects to the overwrite flag but adds no syntax or semantics beyond what the schema states; baseline 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 ('pre-render diagnostics') and enumerates the exact checks performed: schema, Cyrillic in EN decks, missing screenshots or music, overwrite risk, length and render-time estimates. The 'without rendering' qualifier cleanly separates it from render_deck and its other siblings.

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 direct sequencing rule ('Run it before render_deck') and explains the consequence ('render_deck refuses when errors are present'), which is actionable when-to-use guidance. It stops short of stating when to skip this tool in favor of siblings like audit_deck_claims or run_media_qa, so no explicit exclusions are present.

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