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

plan_change

Read-only

Plan infrastructure changes from structured intents, run tofu plan and policy checks without applying changes, and return a plan ID, summary, and policy violations.

Instructions

Plan an infrastructure change from a structured intent. Runs tofu plan and policy checks; never changes anything. Returns a planId, a summary and any policy violations.

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": {
      "kind": "<kind>",
      "name": "<name>",
      "environment": "<environment>",
      "instanceType": "<instanceType>",
      "owner": "<owner>"
    },
    "name": "plan_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameYes
ownerYes
sshCidrNo
environmentYes
instanceTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description reinforces and extends this by naming the engine (`tofu plan`), noting policy checks are run, and enumerating the return payload (planId, summary, policy violations). It does not cover timeout behavior or what happens when policy checks fail, but the added context is solid given annotations carry the safety profile.

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 compact sentences with the core action, the safety guarantee, and the return shape front-loaded in that order. Nothing is redundant or padded.

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

Completeness3/5

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

For a non-trivial provisioning tool with six mostly required parameters and no output schema, the description covers the action and returns adequately but leaves the parameter surface entirely unexplained. It is minimally sufficient to select the tool, not to invoke it correctly.

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% across six parameters, so the description must compensate — and it does not. Terms like 'structured intent' are not mapped to `kind`, `instanceType`, `sshCidr`, or `owner`, leaving an agent to guess at formats and meanings the schema alone cannot convey.

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 states a specific verb and resource — 'Plan an infrastructure change from a structured intent' — and clarifies it runs `tofu plan` plus policy checks. The phrase 'never changes anything' implicitly distinguishes it from a sibling like request_apply, though no sibling is named explicitly.

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 only implied: an agent can infer this is a pre-apply, non-mutating step, but the description never says when to use it versus request_apply or detect_drift, nor does it state prerequisites or what to do with policy violations.

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