Skip to main content
Glama

repair_presentation

Repairs malformed slides.md by removing BOM and leading whitespace and serializing the parsed deck into canonical Slidev form while preserving all slide content.

Instructions

Safely repair slides.md structure: remove BOM/leading whitespace and serialize the parsed presentation into canonical Slidev form. Never drops slide content silently.

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

Input Schema

NameRequiredDescriptionDefault
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully guarantees "never drops slide content silently" and discloses that the file is rewritten into canonical form, but omits critical traits: whether the file is modified in place, whether a backup is made, and what happens when parsing fails (i.e., whether the file is left untouched).

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?

Two sentences, front-loaded with the action and its concrete effects, with no redundant or filler wording. The safety guarantee is appended where it matters most.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating, file-rewriting tool with no annotations and no output schema, the description covers what it changes but not what it returns or how dry_run/error cases behave. An agent could invoke it but could not predict the response or safely preview the change.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single dry_run parameter, and the description does not mention it at all — not what a dry run returns or whether it still reports the intended changes. The one parameter that controls whether writes actually occur is left entirely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("repair slides.md structure") and enumerates the concrete transformations: BOM/leading-whitespace removal and re-serialization into canonical Slidev form. It is clearly a normalizing write operation, distinguishable from verify_presentation or export_presentation, though it never explicitly contrasts itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the word "repair" suggests running this when the file's structure is malformed, but the description never states the trigger condition, whether verify_presentation should be run first, or when repair should be avoided. No alternatives are named.

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