Skip to main content
Glama

Orca List Agents

orca_list_agents
Read-only

Lists running coding agents across worktrees with state and worktree filters, plus optional full prompt and last-message details. Inspect active agent status without starting, sending, or stopping tasks.

Instructions

起動中のエージェント(dsh / codex / claude など)を worktree 横断で一覧化する。内部で orca worktree ps --json を 1 回実行するだけで、起動・送信・停止は一切行わない。既定では prompt を 200 文字に切り詰め、lastAssistantMessage は省略する。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "orca_list_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNotrue にすると prompt 全文と lastAssistantMessage を含める(既定は要約)
limitNo走査するワークツリー数の上限(worktree ps --limit)
stateNoエージェントの状態で絞る(例: working / idle / waiting。部分一致)
worktreeNoこの文字列が worktreeId / branch / displayName / repo / path に含まれるワークツリーだけに絞る(部分一致)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnlyHint and openWorldHint, yet the description adds real value: it discloses that exactly one `orca worktree ps --json` call is made (cost/concurrency signal) and that output is shaped by default — prompt truncated to 200 chars, lastAssistantMessage omitted. That output-shaping disclosure is behavior an agent cannot get from the annotations or schema. It stops short of describing ordering or what the object structure 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose, then effects, then default output shape — good ordering with little waste. The internal command name is arguably detail a caller does not need, but it does convey call count, so it mostly earns its place.

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?

With no output schema, the description still tells the agent the key facts: what is listed, that it is a single read call, and how the default response is trimmed versus `full: true`. It does not sketch the returned fields (worktreeId, state, etc.) beyond the two payload fields it names, which is the remaining gap for a listing tool.

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 all four parameters are already documented, including the `full` flag and its default. The description's note about 200-character truncation and omitted lastAssistantMessage restates what the `full` parameter description already says, adding emphasis but not new semantics. 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 verb and resource ('一覧化する' + '起動中のエージェント') plus a scope qualifier ('worktree 横断で') and gives concrete examples of agent kinds. It does not name a sibling to contrast with, so the agent must infer that this differs from orca_list_worktrees / orca_list_runs, but the agent-centric scope is clear enough.

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?

Usage is implied ('use this to enumerate running agents across worktrees') but there is no explicit when-to-use vs when-not, nor any pointer to a sibling such as orca_list_worktrees for the non-agent case. The statement that it never starts, sends, or stops anything functions as a boundary, but it is about effects rather than tool selection.

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