Skip to main content
Glama

agy_plan

Generate read-only implementation plans through a local planning CLI to offload large repo scans or conserve account quota, with drift detection and optional plan file saving.

Instructions

Optional on-demand Account B read-only planning offload via local Antigravity CLI (agy --mode plan) for huge repo scans or conserving Account A quota. Reuses warm planner session (default session_key='planner:workspace') with external drift detection and enforces Line 1 STATUS: READY | NEED_CLARIFICATION | BLOCKED. Only writes optional save_plan_file (strictly under .agents/plans/) from host Python when STATUS: READY and no workspace mutation occurred. Supports async_mode=true.

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": {
      "workspace_dir": "<workspace_dir>",
      "request": "<request>"
    },
    "name": "agy_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional agy model slug (omit to use Account B agy settings.json default).
effortNoOptional reasoning effort: low, medium, high, xhigh, or max.
requestYesFeature/bugfix request or clarification answers for the planner.
async_modeNoIf true, return job_id immediately for long repository scans; poll with claude_execute_status (default: false).
session_keyNoPlanner continuity bucket in session-index.json (default: 'planner:workspace').
session_modeNo'auto' (default), 'resume' (after NEED_CLARIFICATION), or 'fresh'.
extra_contextNoOptional supplementary constraints or context for planning.
workspace_dirYesAbsolute path to the target project workspace directory.
save_plan_fileNoOptional target file strictly under .agents/plans/ to save approved plan text when STATUS: READY (written by host Python after read-only check).
include_historyNoInject bounded L1 .agents/state/workspace-brief.md plus the latest 2 L2 plan-history entries on fresh/rotated/fallback runs (default: true).
timeout_secondsNoTimeout in seconds (sync cap 165s, async max 1800s).
resume_conversation_idNoExplicit agy conversation_id to resume directly via --resume.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it declares the operation read-only, asserts no workspace mutation occurs, and scopes the only write (save_plan_file, strictly under .agents/plans/, performed by host Python) and only when STATUS: READY. It also discloses warm-session reuse with external drift detection and async support. Missing are auth/environment prerequisites and failure modes.

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?

Roughly 90 words for a 12-parameter tool is proportionate, and the purpose is front-loaded before the write/status constraints. The clauses are dense and stack unexplained terms ('Line 1', 'L1/L2', 'drift detection'), which costs some readability, but no sentence is filler.

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 complex, unannotated, output-schema-less tool the definition covers the operational essentials, including the STATUS: READY | NEED_CLARIFICATION | BLOCKED contract that governs the response head. It stops short of saying what a successful sync call returns beyond that status line (plan text, conversation_id), which is a notable gap given there is no output schema.

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?

Schema coverage is already 100%, so baseline would be 3, but the description adds real meaning: the session_key default of 'planner:workspace', the READY-gated write constraint on save_plan_file, and that async_mode=true is polled via claude_execute_status. Those are behavioral couplings the schema text alone only partly conveys.

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?

States a specific verb and resource: read-only planning offload via the local Antigravity CLI (agy --mode plan), plus its two motivating cases (huge repo scans, conserving Account A quota). It implicitly separates planning from execution siblings, but never names agy_execute or claude_execute, and the 'Account A / Account B' framing is unexplained jargon an agent must guess at.

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?

'Optional on-demand' plus 'for huge repo scans or conserving Account A quota' gives a clear selection context, and session_mode guidance ('resume' after NEED_CLARIFICATION) covers the multi-turn case. There are no explicit exclusions or named alternatives, so an agent must infer that ordinary execution work belongs elsewhere.

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