Skip to main content
Glama
infra-agent-gateway
by jcortes

request_apply

Submit a plan for human approval before infrastructure changes; the plan remains pending until a reviewer approves it, and nothing is applied.

Instructions

Ask a human to approve and apply a plan. Does not apply anything; the plan waits as pending_approval.

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": {
      "planId": "<planId>"
    },
    "name": "request_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it discharges the most critical point: calling this creates a pending_approval state and performs no application. That corrects the misleading verb in the tool name. Remaining gaps include whether the human is notified, what happens on rejection, and whether repeated calls create duplicate requests.

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?

Two short sentences, front-loaded with the action and followed immediately by the correcting constraint. Every word earns its place and nothing is padded.

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 one-parameter tool with no annotations and no output schema, the description covers the essential behavioral surprise (pending state, no application). The main missing piece is the provenance of planId and a hint about what the call returns, but neither is disqualifying at this complexity.

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?

With one parameter and 0% schema description coverage, the description must define planId, and it only implies it via "a plan". It does not say where planId comes from (presumably plan_change) or what format it takes, leaving the agent to infer the wiring.

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 uses a specific verb and resource ("approve and apply a plan") and immediately clarifies the tool's actual effect, so an agent can distinguish it from a direct apply or from plan_change. It does not name any sibling explicitly, so it stops short of a 5.

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?

Usage is implied rather than stated: the phrasing suggests calling this after a plan exists and before anything is deployed, and "Does not apply anything" hints that an apply step is separate. However, there is no explicit when-to-use, when-not-to-use, or named alternative among plan_change, deploy_workload, or detect_drift.

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