Skip to main content
Glama

reject_plan

Reject a plan with an optional reason, recording the rejection for the coding pipeline. Skips the request when plan approval is disabled, so nothing is rejected.

Instructions

Reject a plan.

Fail-closed: when plan approval is disabled the request is skipped and nothing is rejected. Self-approval is permitted and recorded.

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": {
      "plan_name": "<plan_name>"
    },
    "name": "reject_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
plan_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full load and does disclose two real traits: a no-op under disabled approval and that self-approval is permitted and recorded. It omits what state actually changes, whether rejection is reversible, what permissions are required, and whether the reason is persisted — significant gaps for a mutation tool.

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?

Two short, front-loaded sentences with no filler. The trailing 'Self-approval is permitted and recorded' reads as borrowed from an approval tool and is slightly confusing in a rejection context, but it costs little space.

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?

For a mutation tool with no annotations, no output schema, and zero parameter documentation, the definition leaves too much open: the resulting state, error conditions for an unknown or unapproved plan, and the role of 'reason' are all unstated.

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?

Schema description coverage is 0%, so the description must explain both parameters, yet it mentions neither 'plan_name' (required, identifying the target) nor 'reason' (what it is used for, whether it is stored or surfaced to reviewers). The agent learns nothing about parameters beyond their names in the schema.

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 opens with a specific verb and resource ('Reject a plan'), which is directly distinguishable from the sibling tools approve_plan, pause_plan, and resume_plan. It stops short of naming an alternative, but the operation itself is unambiguous.

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 'fail-closed' note tells the agent that when plan approval is disabled the call is skipped and nothing happens, which is genuinely useful pre-call context. However, there is no guidance on when to reject versus pause or record a decision, and no stated preconditions such as required plan state.

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