Skip to main content
Glama

Orca Get Worktree

orca_get_worktree
Read-only

Retrieves detailed JSON for a single worktree using selectors such as active, current, branch, name, path, id, identity, or issue, without modifying anything.

Instructions

1 件のワークツリー詳細を JSON で返す。内部で orca worktree show --worktree <selector> --json を実行するだけで、何も変更しない。セレクタは active / current / branch: / name: / path: / id::: / identity: / issue:。

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": {
      "worktree": "<worktree>"
    },
    "name": "orca_get_worktree"
  }
}

Input Schema

NameRequiredDescriptionDefault
worktreeYesワークツリーセレクタ(identity:<key> / id:<repo>::<path> / name:<displayName> / branch:<branch> / issue:<number> / path:<path>、または active / current)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, and the description's "何も変更しない" is consistent with them without adding much. It does add two useful facts beyond the annotations — the output is JSON and the tool is a thin wrapper around a CLI invocation — but it does not describe failure behavior for an invalid or ambiguous selector.

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 and side-effect guarantee, followed by the selector vocabulary. The selector enumeration duplicates the input schema verbatim, which is a minor waste but keeps the definition self-contained.

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

Completeness3/5

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

For a single-parameter read tool with annotations covering the safety profile, the description covers purpose, side effects, and selector syntax. Because no output schema exists, it should say more about the returned JSON structure than "JSON で返す", and it omits error behavior — both are noticeable gaps, though not fatal.

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%, and the schema already lists every selector form (identity, id, name, branch, issue, path, active, current). The description repeats that same list rather than adding meaning such as precedence rules when multiple selectors could match, so the baseline of 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?

The description states a specific verb and resource: it returns the details of exactly one worktree as JSON, and identifies the underlying command `orca worktree show --worktree <selector> --json`. The phrase "1 件" makes clear it fetches a single item, which implicitly distinguishes it from a listing operation, though it does not name the sibling list tool explicitly.

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 rather than stated: the description says the tool only runs the show command and changes nothing, which signals a read operation, and it enumerates the accepted selector forms. However, it never says when to choose this over `orca_list_worktrees` or what to do if the selector matches nothing.

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