Skip to main content
Glama

Analyze request into source units

todo_analyze_request
Read-onlyIdempotent

Analyzes a request to identify source clauses, uncertainty, and whether Codex should work independently or create a plan, guiding when planning is needed.

Instructions

Use once only when work may require a plan. Do not call for obviously small deterministic work. Identifies source clauses, uncertainty, and whether Codex should work independently or create a plan.

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": {
      "request": "<request>"
    },
    "name": "todo_analyze_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world safety, so the bar is lower. The description adds real behavioral context beyond them: the single-invocation constraint and the fact that the result is an assessment (clauses, uncertainty, work-mode recommendation) rather than an action, and the output schema carries the return structure.

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?

Three tight sentences with no filler. The usage constraints are front-loaded, but the actual purpose statement trails behind them, so an agent skimming the first clause learns when to call before what the call does.

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?

With an output schema present, the description need not document return values, and annotations cover the safety profile. The remaining gap is the undefined `request` input and no explicit handoff to the plan-creation sibling for the case where a plan is recommended.

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 0%, so the description would need to compensate for the single `request` parameter. It never explains that the parameter is the raw user request or that it accepts up to 100,000 characters, though the meaning is inferable from the tool's framing.

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 concrete analysis output set (source clauses, uncertainty, and an independent-vs-plan decision), which is more specific than the title alone. It implicitly positions itself as a precursor to planning rather than the planner itself, though it never names todo_create_plan explicitly.

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 an explicit when ('work may require a plan'), an explicit when-not ('obviously small deterministic work'), and a call-frequency constraint ('use once only'). What is missing is an explicit statement of what to do instead in the excluded case or which sibling to call next.

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