Skip to main content
Glama
claude-agy-mcp
by PyModel

delegate

Sends heavy or out-of-scope tasks to the Antigravity CLI; read-only by default, with optional write and sandbox controls plus denied-action notes.

Instructions

Raw delegation to the Antigravity CLI for heavy tasks that don't fit the other tools. Read-only by default; pass write: true to let agy edit files, sandbox: true to confine it. Anything it was refused comes back as a denied-actions note.

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": {
      "prompt": "<prompt>"
    },
    "name": "delegate"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path to the working directory / project root. Defaults to the server's cwd.
dirsNoExtra directories to add to agy's workspace, for cross-repo or worktree-vs-base analysis.
modelNoOverride the model. Accepts a display name ("Gemini 4 Neon (High)"), an id ("gemini-4-neon-high"), or a family selector ("gemini-neon@latest-high"). Normally omit — the tool routes automatically.
writeNoAllow file edits and command execution. Off by default.
effortNoReasoning tier supported by the selected model in `agy models`. A family selector can choose its listed sibling at this tier. An exact model ID or label fixes the variant: a conflicting effort is rejected. xhigh/max require a listed variant.
promptYesThe complete task prompt for agy.
schemaNoJSON Schema (as a string) constraining the answer. Returns structuredContent as well as text. Costs noticeably more latency and tokens, so use it only when you will parse the result.
sandboxNoRun agy with terminal restrictions enabled.
slash_commandsNoLet agy expand your slash commands and skills into the prompt. Off by default: a hostile file in the workspace can otherwise steer the delegated model.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.0
    • changedInput schema / properties / effort / description
      Previous value: -"Reasoning tier. Gemini models carry their tier in the name, so this switches to the sibling model at that tier (Flash (High) -> Flash (Medium)); agy's own --effort flag only reaches models without a tier. Defaults to the user's set_model choice, else the tool's own tier."New value: +"Reasoning tier supported by the selected model in `agy models`. A family selector can choose its listed sibling at this tier. An exact model ID or label fixes the variant: a conflicting effort is rejected. xhigh/max require a listed variant."
    • changedInput schema / properties / effort / enum
      Previous value: -[
      -  "low",
      -  "medium",
      -  "high"
      -]New value: +[
      +  "low",
      +  "medium",
      +  "high",
      +  "xhigh",
      +  "max"
      +]
    • changedInput schema / properties / model / description
      Previous value: -"Override the model. Accepts a display name (\"Gemini 3.8 Flash (High)\"), an id (\"gemini-3.8-flash-high\"), or a family selector (\"gemini-pro@latest-high\"). Normally omit — the tool routes automatically."New value: +"Override the model. Accepts a display name (\"Gemini 4 Neon (High)\"), an id (\"gemini-4-neon-high\"), or a family selector (\"gemini-neon@latest-high\"). Normally omit — the tool routes automatically."
  2. Changed7 schema fields changedv3.1.0
    • addedInput schema / properties / cwd / minLength
      Added value: +1
    • addedInput schema / properties / dirs / items / minLength
      Added value: +1
    • addedInput schema / properties / dirs / maxItems
      Added value: +256
    • addedInput schema / properties / model / maxLength
      Added value: +512
    • addedInput schema / properties / model / minLength
      Added value: +1
    • addedInput schema / properties / model / pattern
      Added value: +"^[^-]"
    • addedInput schema / properties / prompt / pattern
      Added value: +"\\S"
  3. Changed7 schema fields changedv2.1.0
    • addedInput schema / properties / dirs
      Added value: +{
      +  "description": "Extra directories to add to agy's workspace, for cross-repo or worktree-vs-base analysis.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / effort
      Added value: +{
      +  "description": "Reasoning tier. Gemini models carry their tier in the name, so this switches to the sibling model at that tier (Flash (High) -> Flash (Medium)); agy's own --effort flag only reaches models without a tier. Defaults to the user's set_model choice, else the tool's own tier.",
      +  "enum": [
      +    "low",
      +    "medium",
      +    "high"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Override the model (exact name from `agy models`, e.g. \"Gemini 3.1 Pro (High)\"). Normally omit — the tool routes automatically."New value: +"Override the model. Accepts a display name (\"Gemini 3.8 Flash (High)\"), an id (\"gemini-3.8-flash-high\"), or a family selector (\"gemini-pro@latest-high\"). Normally omit — the tool routes automatically."
    • addedInput schema / properties / sandbox
      Added value: +{
      +  "description": "Run agy with terminal restrictions enabled.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / schema
      Added value: +{
      +  "description": "JSON Schema (as a string) constraining the answer. Returns structuredContent as well as text. Costs noticeably more latency and tokens, so use it only when you will parse the result.",
      +  "type": "string"
      +}
    • addedInput schema / properties / slash_commands
      Added value: +{
      +  "description": "Let agy expand your slash commands and skills into the prompt. Off by default: a hostile file in the workspace can otherwise steer the delegated model.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / write
      Added value: +{
      +  "description": "Allow file edits and command execution. Off by default.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changedv2.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
  5. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden and does so well: it declares the read-only default, names the exact flag that unlocks file edits (`write: true`), and explains that `sandbox: true` confines execution. It also discloses a return-behavior trait — refused actions surface as a denied-actions note — which an agent could not guess from the schema. It stops short of stating whether a write-mode call is reversible or what the denial note looks like.

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 short clauses, zero filler, and the most decision-relevant fact (raw delegation for leftover heavy tasks) is front-loaded. The default-safety and denial-note details follow in the order an agent would need them before calling.

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 nine-parameter, no-output-schema tool, the description covers the essentials: what it delegates to, the default safety posture, how to escalate to writes, and how refusals come back. The remaining gaps — cost/latency of write mode and the shape of the denied-actions note — are secondary given the fully described schema.

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?

Schema coverage is 100%, so every one of the nine parameters is already documented, and the description's discussion of `write` and `sandbox` largely restates what those schema descriptions say. The one genuinely additive note, the denied-actions return value, is about output rather than parameter meaning, so baseline 3 applies.

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 action — raw delegation to the Antigravity CLI — and scopes it to "heavy tasks that don't fit the other tools." That tells an agent this is the catch-all escape hatch, but it never names delegate_many, the sibling that would otherwise be the obvious competing choice for delegated work.

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 phrase "heavy tasks that don't fit the other tools" is a usable routing heuristic, and the read-only default is stated clearly. However, there is no explicit when-not guidance and no mention of how this differs from delegate_many or follow_up, so the agent must infer the boundary itself.

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