Skip to main content
Glama

Ask another agent

ask_agent
Read-only

Consult another AI coding agent for a second opinion on a design, plan review, or stuck bug; the advisor reads your working directory and returns a session_id for follow-ups.

Instructions

Ask another AI coding agent (Claude Code, Codex, Grok or Antigravity as "agy" with Gemini models, using the CLIs signed in on this machine) for advice: a second opinion on a design, a review of your plan, help with a bug you are stuck on. The advisor runs headless with read-only access to the working directory, so point it at files instead of pasting them. It cannot edit files or ask you questions. Calls take from several seconds to a few minutes. The reply includes a session_id: pass it back to ask a follow-up in the same conversation.

Input Schema

NameRequiredDescriptionDefault
cwdNoDirectory the advisor can read. Defaults to the directory this server was started in
agentYesWhich CLI to consult
modelNoModel for that CLI, e.g. gpt-6-astra, opus, grok-4.7, gemini-3.1-pro-high. Omit for the CLI's default; list_agents shows options
effortNoReasoning effort. Omit for the CLI's default
questionYesThe question, with enough context to answer it (file paths, what you tried, constraints)
session_idNosession_id from an earlier reply, to ask a follow-up

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, open-world, non-idempotent, but the description adds substantive context beyond them: the advisor runs headless with read-only access to the working directory, cannot edit files, cannot ask clarifying questions, and costs seconds-to-minutes per call. The session_id continuation mechanism is also explained, which the annotations say nothing about.

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 tight sentences with no filler: capability and backends first, then the read-only/headless operating constraint and the file-pointing workaround, then latency and the session_id round-trip. Every sentence carries information an agent needs 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 six-parameter, several-minute, open-world call with no output schema, it covers prerequisites (signed-in CLIs), constraints (no edits, no questions), timing, and the follow-up loop — everything needed to invoke correctly. It stops short of describing the shape of the reply beyond session_id, which is the main remaining 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all six parameters including enums and the session_id pattern. The description only reinforces session_id (follow-up in same conversation) and the cwd/file-pointing idea; with full schema coverage the baseline 3 is appropriate.

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 names a specific verb and resource ('Ask another AI coding agent') and enumerates the concrete backends it can reach (Claude Code, Codex, Grok, Antigravity/agy). It is unambiguous that a single advisor is consulted, but it never explicitly contrasts itself with the plural sibling ask_agents, so the single-vs-fan-out boundary must be inferred from the singular 'agent' enum.

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?

Concrete use cases are given ('second opinion on a design, a review of your plan, help with a bug you are stuck on'), and it routes the agent to list_agents for model options and tells it to pass files via cwd rather than pasting. It never states when NOT to use it or when ask_agents / review_changes would be the better choice.

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

Deploy Server

Other Tools