Skip to main content
Glama

Apply an AI proposal

apply_agent_run
DestructiveIdempotent

Apply a run in state "proposed" — Administrator/ProjectManager only. For plan-generator this creates the project (the project cap applies: 402); for schedule-doctor it moves every task in the re-plan and records each move. The server re-checks first: if any task changed since the proposal, nothing is written, the run becomes "stale" and the answer is 409 — run the agent again. ONLY CALL THIS AFTER THE USER HAS SEEN THE PROPOSAL AND SAID TO APPLY IT.

Input Schema

NameRequiredDescriptionDefault
idYesRun id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, but the description adds substantive behavior the annotations cannot: the concrete side effects (project creation for plan-generator, per-task moves for schedule-doctor), the 402 project-cap failure, and the all-or-nothing re-check that yields a 409 with nothing written when tasks changed. That is exactly the extra context the annotations leave open.

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 state requirement and permissions come first, side effects second, failure semantics third, and the safety warning last as a capped emphatic sentence. Every clause carries distinct information (per-agent behavior, 402, 409, stale, re-run) with no repetition.

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

Completeness5/5

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

For a destructive, non-read-only mutation with no output schema, the description covers authorization, state precondition, side effects, credit/cap failure, and the stale-conflict outcome, which is everything an agent needs to call it correctly or correctly decline to call it.

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?

There is a single parameter with 100% schema description coverage, so the schema already carries the meaning of 'id'. The description adds only the implicit constraint that the id must reference a run in state 'proposed', not a broader explanation of the parameter or its acceptable values. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb ('Apply') and resource ('a run in state "proposed"') and then differentiates behavior by agent type: plan-generator creates the project, schedule-doctor moves every task in the re-plan. That is enough for an agent to tell it apart from sibling run tools such as reject_agent_run, get_agent_run, or run_agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition (the run must be in 'proposed'), an authorization constraint (Administrator/ProjectManager only), an explicit when-not (do not call before the user has seen the proposal and approved), and a recovery route when the run goes stale ('run the agent again'). This is close to a complete decision rule.

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.

Resources