Skip to main content
Glama

check_subagent

Read-only

Capture the latest output from a running subagent, using its handle or run ID, and optionally limit the number of lines retrieved.

Instructions

Capture the last output from a running subagent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNoHow many lines to capture from the pane top
handleYesrun_id, pane id, or sess:win target

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations declare readOnlyHint=true, so the safety profile is known. The description adds the constraint that only running subagents are supported and specifies 'last output,' which is useful context. There is a minor ambiguity with the schema's 'pane top' phrasing, but overall the description provides valuable behavioral context.

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?

The description is a single concise sentence of nine words, communicating the essential function without any fluff or redundancy. Every word contributes to understanding.

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?

An output schema exists, so return values are covered. The description explains the core purpose and the 'running subagent' constraint. It does not address error conditions like non-running subagents, but for a simple read-only tool, this is adequately complete.

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?

The schema has 100% coverage for both parameters with clear descriptions, so the description does not need to add parameter details. It adds no extra semantics beyond what the schema provides, which aligns with the baseline for well-documented schemas.

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?

The description uses a specific verb 'capture' and resource 'last output from a running subagent', clearly distinguishing it from siblings like list_subagents, send_to_subagent, and stop_subagent. There is no ambiguity about what the tool does.

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?

The context is clear: use this tool to retrieve recent output from an active subagent. It does not explicitly mention alternatives or when-not-to-use, but the purpose alone makes the appropriate use case evident.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/garland3/subagent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server