Skip to main content
Glama

Ask an agent

ask
Destructive

Delegate a prompt to a coding agent and wait for its reply, session ID, and usage. Supports multiple agents, models, images, and session continuation.

Instructions

Run a prompt on an agent and wait for the answer (minutes). Returns reply, session_id, usage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesAgent name from list_agents, e.g. 'codex' or 'claude'.
modelNoModel ID from list_models.
imagesNoAbsolute image paths to attach (agents with supports.images).
promptYesInstructions for the agent.
workdirNoAbsolute project directory. Default: first trusted workspace.
add_dirsNoExtra absolute directories the agent may use.
session_idNoContinue this session (returned by earlier calls).
output_schemaNoOptional JSON Schema; the reply is returned parsed as `structured`.
fallback_agentsNoAgents to try in order if this one is out of quota or unavailable.
permission_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and non-idempotent, so the agent knows this is a risky, side-effecting operation. The description adds the important blocking/waiting behavior and return fields (reply, session_id, usage), which complements annotations. However, it doesn't explain quota fallback, permission implications, or what makes it destructive.

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?

A single, front-loaded sentence that conveys the core behavior (run prompt, wait) and return values. No wasted words; every clause carries information.

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

Completeness2/5

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

For a 10-parameter tool with no output schema and destructive/open-world annotations, the description is too thin. It omits session continuation behavior, fallback_agents semantics, output_schema handling, and permission_mode implications—all of which an agent would need to invoke it correctly.

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 90%, so the schema already documents nearly all parameters including fallback_agents, session_id, and output_schema. The description adds no parameter-specific meaning beyond the schema, so 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 states a clear verb+resource: run a prompt on an agent and wait for the answer. It distinguishes itself from siblings like start_task/wait_task by emphasizing synchronous blocking behavior ('wait for the answer (minutes)'), though it doesn't explicitly mention the async alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus siblings like start_task or send_message. The parenthetical '(minutes)' hints at synchronous blocking but doesn't state when to prefer it over async task tools or when not to use it.

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