Skip to main content
Glama

Decide on a Phở analysis plan

approve_analysis_plan

Record the user's decision on a Phở analysis plan: approve runs it, request_changes sends the user's note so Phở revises the plan (it comes back to plan_review), deny stops the session (a denied trial is not used up). Call it only with the user's own decision, never on their behalf. Pass approval_id and payload_hash exactly as get_analysis_run returned them.

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": {
      "run_id": "<run_id>",
      "approval_id": "<approval_id>",
      "payload_hash": "<payload_hash>",
      "decision": "<decision>"
    },
    "name": "approve_analysis_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoRequired for request_changes: what the user wants changed.
run_idYes
decisionYes
approval_idYes
payload_hashYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false mutation), the description discloses the downstream consequence of every branch: approve executes, request_changes sends the note and cycles back to plan_review, deny terminates the session. It even clarifies a non-obvious billing side effect — "a denied trial is not used up" — which an agent could not infer from any structured field.

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 tight sentences: what it records, how to use it safely, and how to pass the identifiers. The outcome mapping is front-loaded and no sentence is redundant.

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 five-parameter mutation with no output schema, the definition covers the decision branches, the identifier provenance, and the safety constraint. It stops short of saying what the approve branch returns (e.g., a run handle or status), which is the only thing an agent might still need to infer.

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?

With only 20% schema description coverage, the description must carry the load, and it largely does: it explains the enum's three values and their effects, that note is the payload for request_changes, and that approval_id and payload_hash must be passed verbatim as returned by get_analysis_run (an anti-tampering requirement invisible in the schema). Only run_id is left without added meaning, but its UUID pattern is self-evident.

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?

"Record the user's decision on a Phở analysis plan" states a specific verb and resource, then immediately enumerates the three decision outcomes (approve/request_changes/deny), so the agent knows exactly what the tool commits. It is clearly differentiated from the sibling get_analysis_run, which is named as the source of the approval identifiers.

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?

The description gives an explicit constraint on use — "Call it only with the user's own decision, never on their behalf" — and explains what each decision value leads to, including that request_changes returns to plan_review. It does not state the precondition that the run must currently be in plan_review for a decision to be accepted, which is the one meaningful gap.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.