Skip to main content
Glama

codex_diff

Get the repository-wide staged and unstaged diff with the task baseline reference for inspection and audit.

Instructions

Return the current repository-wide staged and unstaged diff plus the task baseline reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations are all false, so the description carries the burden of explaining side effects, but it only says 'Return.' It does not disclose whether the tool modifies state, updates the baseline reference, or requires special permissions. The readOnlyHint=false creates ambiguity with the read-like phrasing, though not a direct contradiction.

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?

The description is a single, front-loaded sentence with no filler. It states the core operation and scope immediately, making it easy to parse.

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

Completeness2/5

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

With no output schema and ambiguous annotations, the description is too thin. It does not define 'task baseline reference,' specify the output format, or clarify side effects and selection context. An agent can guess the basic operation but lacks enough detail to confidently choose this tool among siblings.

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?

The schema provides no description for task_id (0% coverage), and the description only loosely references 'task baseline reference.' It does not explain how task_id is used, what valid values represent, or what happens if it is missing or invalid. The name and UUID format give some clues, but the description adds little meaning.

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 uses a specific verb ('Return') and a precise resource: 'current repository-wide staged and unstaged diff plus the task baseline reference.' This clearly distinguishes it from sibling tools like repo_read or repo_snapshot by naming the exact scope and output.

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 description implies a task-oriented diff use case but never states when to prefer codex_diff over alternatives such as repo_snapshot or repo_read. There is no explicit when/when-not guidance, only an implied reason for using the tool.

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