Skip to main content
Glama

Ask agy

agy_ask

Delegate broad codebase exploration to a low-cost agentic model that locates candidate files, summarizes structure, or drafts an approach — returning leads you verify before acting.

Instructions

Delegate a task to agy (Google's Antigravity CLI), a cheap agentic model that's good at broad exploration but prone to hallucination. Use it to cast a wide net over a codebase or question — locating candidate files, summarizing structure, drafting an approach — before you commit your own more expensive tool calls to verifying and acting on it. Starts a brand-new agy conversation; use agy_continue to follow up on this one. agy is a cheap, fast model and explores well, but it fabricates file paths, line numbers, function names, and quoted code with some regularity. Treat everything in response as an unverified lead, not fact: before repeating a specific claim (a path, a symbol, a line number, an exact quote) to the user or acting on it, confirm it yourself with Read/Grep/Glob.

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": "agy_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory / project root for agy to run in. Defaults to this server's own working directory.
modeNoagy execution mode. Only meaningful with permission=read_write.
modelNoOverride agy's model, e.g. 'gemini-3.8-flash-low' for the cheapest/fastest option. Use agy_list_models to see choices.
effortNoReasoning effort.
promptYesThe task or question to give agy.
add_dirNoExtra directories to add to agy's workspace (repeatable --add-dir).
log_fileNoIf set, also stream this task's activity to this file as plain text lines. The file is created immediately (so a wait-loop never spins on a nonexistent file), and once the task reaches a terminal state — success, a real error, or even a crash before it properly started — the raw response/error text is appended between "###AGY_RESPONSE_START###"/"###AGY_RESPONSE_END###" lines (for extracting just that text without JSON-parsing), then the full JSON result, then a closing marker: "###AGY_TASK_DONE###" on success or "###AGY_TASK_ERROR###" on any failure — always exactly one of the two, guaranteed. Meant to be paired with background:true and your own Bash tool's run_in_background, instead of polling agy_status in a loop: after starting this call, run `until grep -qE '###AGY_TASK_DONE###|###AGY_TASK_ERROR###' <file>; do sleep 5; done` with run_in_background:true — you'll get an automatic completion notification (success or failure) the same way any other background shell command notifies you when it exits.
backgroundNoRun this as a background task instead of blocking the call: returns a task_id immediately (status "running") instead of waiting for agy to finish. Poll it with agy_status (optionally long-polling via its wait_seconds) to check progress or retrieve the final result once done. Use this for anything that seems likely to take a while — exploring a large codebase, a multi-step task — so a slow run doesn't cost you the whole call to a timeout.
permissionNoTool-access level for this call. none: agy answers from context only — no tools at all (even reading files is denied). read_only: agy may read files, glob, and search the codebase, plus run a curated set of read-only shell commands (ls, cat, head, tail, wc, pwd, file, stat, du, and git log/diff/show/status/blame) with any arguments but no chaining/piping/substitution/redirection. It cannot write files, edit files, or run anything else. Safe default for exploration. read_write: agy gets full tool access (read, write, edit, run shell commands) via --dangerously-skip-permissions — no guardrails. Only use when you specifically want agy to make changes.read_only
timeout_secondsNoMax seconds to wait for agy to finish. For anything that might run longer than a couple minutes, prefer background:true instead of raising this — a blocking call that hits this timeout kills the underlying agy process and the work is lost, whereas a background task keeps running and you just check back later.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/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 does so: it warns that agy 'fabricates file paths, line numbers, function names, and quoted code with some regularity' and instructs verification with Read/Grep/Glob before repeating claims. It further discloses that a blocking timeout 'kills the underlying agy process and the work is lost' while background tasks survive, plus what log_file writes and its exact terminal markers.

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?

Front-loads the core purpose and the verification caveat, which is the right order. It loses a little to redundancy: the 'cheap, explores well, but hallucinates' characterization appears twice in slightly different words, and the log_file prose is very dense.

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 10-parameter, no-annotation, no-output-schema tool, the description covers everything an agent needs: safety profile per permission level, the hallucination risk and required verification step, blocking vs background execution, and the log-file completion protocol. Nothing material is left to inference.

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 100%, so a baseline of 3 is already earned; the description adds cross-parameter meaning the schema lacks, notably choosing background:true over a large timeout_seconds and treating permission=read_only as the safe exploration default. It does not add much on cwd, mode, model, or effort beyond what the schema already says, keeping it out of 5 territory.

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?

Opens with a specific verb+resource ('Delegate a task to agy (Google's Antigravity CLI)') and characterizes what agy is good and bad at. It also explicitly distinguishes itself from a sibling: 'Starts a brand-new agy conversation; use agy_continue to follow up on this one.'

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 an explicit when-to-use pattern ('cast a wide net ... before you commit your own more expensive tool calls to verifying and acting on it') and names the alternative (agy_continue) for follow-ups. It also routes long-running work to background:true rather than raising timeout_seconds, which is actionable selection guidance.

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