Skip to main content
Glama

lint_repair_apply

DestructiveIdempotent

Applies one prepared lint repair through the daemon's CAS canonical writer, requiring an exact approval string and refusing stale targets.

Instructions

Apply exactly one prepared lint repair through the daemon's CAS canonical writer. Requires the exact user approval string apply repair <manifest-id> <manifest-digest> and refuses stale targets. Local stdio only.

Input Schema

NameRequiredDescriptionDefault
approvalYesExact user approval: apply repair <manifest-id> <manifest-digest>
manifest_idYes
approved_manifest_digestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.3

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructive=true, readOnly=false and idempotent=true; the description adds real context beyond them — CAS canonical writer semantics, refusal of stale targets, the exact approval-string gate, and a 'local stdio only' execution constraint. It does not say what state is mutated on the target page or how to recover from a refusal, keeping it below a 5.

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?

Three short sentences, front-loaded with the action and followed by the safety gate and environment constraint. No filler or repetition.

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 destructive, non-read-only mutation with no output schema and two undocumented parameters, the description covers the safety gate and environment but omits how to obtain the manifest id/digest, what the call returns, and what happens to the page on success. Adequate but with clear gaps an agent would hit at call time.

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 33%: only `approval` is documented, and its template is repeated in the description with little added value. `manifest_id` and `approved_manifest_digest` remain undefined — the description implies they come from a prior prepare and must match, but never states provenance or format, so the coverage gap is only partly compensated.

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?

States a specific verb and resource — 'Apply exactly one prepared lint repair' — plus the mechanism ('daemon's CAS canonical writer') and scope ('exactly one'). The word 'prepared' implicitly positions it downstream of lint_repair_prepare and lint_repair_verify, though no sibling is named outright.

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 preconditions: an exact user approval string is required and stale targets are refused, so the agent knows a prepare step and fresh digest are needed. It does not explicitly name lint_repair_prepare/lint_repair_verify as the required adjacent calls or say when to skip this tool.

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