Skip to main content
Glama
Coding Thinker MCP
by awssat

plan_and_verify

Validate line-by-line code diffs to detect conflicts, overlaps, and generate safety scores before committing changes.

Instructions

Step 3: Submit implementation plan with ACTUAL DIFFS.

You MUST provide exact line-by-line changes. The server will:

  • Validate diffs with fuzzy matching (±2 lines tolerance)

  • Check size limits (max 50000 chars per diff)

  • Detect overlapping edits and handle them correctly

  • Check for conflicts and stale diffs

  • Generate lintable code preview

  • Calculate safety score

CRITICAL:

  • Provide real diffs with exact line numbers from original files

  • Multiple diffs to same file are supported (server handles overlaps)

  • Before content should match closely (60%+ similarity)

  • Keep diffs under 50000 characters

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": {
      "session_id": "<session_id>",
      "diffs": "<diffs>",
      "phases": "<phases>"
    },
    "name": "plan_and_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffsYes
phasesYesImplementation phases for this specific request
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.2

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose substantial server behavior: fuzzy matching tolerance, size limits, overlap handling, conflict/stale diff checks, code preview generation, and safety scoring. It still leaves unclear whether the tool only validates or actually applies changes, and what the response contains.

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 description is front-loaded with the core action and then structured into server behaviors and critical constraints. Some bullet items repeat related validation concepts, but overall it is clear and task-focused.

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 complex, 3-required-parameter tool with nested diff objects, no output schema, and no annotations, the description covers diff validation well. It is still incomplete regarding session_id, phases, expected response, and whether submitting diffs has any file-mutating effect.

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 only 33%, so the description must compensate. It adds useful meaning for the diffs: exact line numbers, before/after similarity expectations, multiple diffs to the same file, and size limits. But it does not explain session_id, phases, file, after, or reasoning semantics.

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 states a specific action: submit an implementation plan with actual line-by-line diffs. The 'Step 3' framing places it in a workflow, but it does not explicitly distinguish this tool from siblings such as execute_and_review or analyze_context.

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?

The 'Step 3' label implies when this tool is used in the overall sequence, and the CRITICAL section gives requirements for a valid call. However, it does not state explicit when-to-use versus alternatives or when-not-to-use conditions.

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