Skip to main content
Glama

validate_plan

Analyzes implementation plans with OpenAI Codex to check feasibility, dependencies, gaps, code-review risks, and Context7 best-practice compliance before coding.

Instructions

Validate an implementation plan using OpenAI Codex CLI with Context7 best practices integration.

This tool analyzes implementation plans for:

  • Technical feasibility (blockers, dependencies, architectural issues)

  • Code review suggestions (patterns, improvements, anti-patterns)

  • Implementation completeness (gaps, complexity estimation)

  • Best practices compliance (via Context7)

Primary execution uses Codex CLI (authenticated via browser OAuth). Falls back to OpenAI API when Pro quota is exhausted.

Parameters:

  • plan_path: Path to plan file (e.g., ./PLAN.md)

  • plan_content: Direct plan content as a string

  • project_path: Root directory for context (defaults to cwd)

  • apply_changes: If true, apply suggested changes (default: false)

  • require_confirmation: If apply_changes=true, require user confirmation (default: true)

At least one of plan_path or plan_content must be provided.

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

Input Schema

NameRequiredDescriptionDefault
plan_pathNoPath to plan file (e.g., ./PLAN.md)
plan_contentNoDirect plan content as a string
project_pathNoRoot directory for context (defaults to cwd)
apply_changesNoIf true, apply suggested changes instead of suggest-only mode
require_confirmationNoIf apply_changes=true, require user confirmation before each change

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 real work: it discloses the auth mechanism (browser OAuth), the fallback path and its trigger (quota exhaustion), the read-only-vs-mutating default of apply_changes=false, and the confirmation gate on mutations. It stops short of saying what files get modified or what the response looks like, but the safety-relevant behavior is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence and the analysis bullet list are well front-loaded, but the five-line 'Parameters:' block duplicates descriptions already present in the schema, adding length without information. The structure is scannable, yet a meaningful fraction of the text is redundant rather than earning its place.

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?

For a 5-parameter tool with no annotations and no output schema, the definition covers trigger conditions, input constraints, execution modes, authentication, and mutability semantics. What it does not spell out is the response shape or what 'apply suggested changes' concretely modifies on disk, which is the remaining material gap.

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

Parameters4/5

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

Schema coverage is 100%, so the per-parameter lines in the description largely restate the schema and earn little credit. The one genuine addition is the cross-parameter constraint that at least one of plan_path or plan_content is required — a mutual-exclusivity rule that JSON Schema here does not express and that the agent could otherwise get wrong.

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?

The description opens with a specific verb and resource — 'Validate an implementation plan' — and names the engine (OpenAI Codex CLI with Context7). It then enumerates exactly what dimensions are analyzed (feasibility, code review, completeness, best practices), so an agent knows precisely what the tool produces without opening anything else.

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?

It gives a clear prerequisite ('At least one of plan_path or plan_content must be provided') and explains the execution strategy: Codex CLI via browser OAuth first, OpenAI API fallback when Pro quota is exhausted. It does not state when to prefer this over any alternative workflow, but with no siblings listed and a narrow, explicit trigger condition, the guidance is operationally sufficient.

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

Deploy Server

Other Tools