Skip to main content
Glama

Get Pane Process Info

pane_process_info
Read-onlyIdempotent

Inspect a terminal pane’s foreground process, PID, and working directory to identify the running command and its location.

Instructions

Inspect the foreground process, PID, and working directory inside a pane.

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": {
      "pane_id": "<pane_id>"
    },
    "name": "pane_process_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pane_idYesTarget pane ID (for example 'w1:p1').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety needs no restating. The description adds value beyond that by disclosing the content of the read (foreground process, PID, cwd), which matters because there is no output schema; it stops short of describing behavior for panes with no running process or invalid IDs.

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?

One front-loaded sentence with the operative verb and the returned fields; nothing is padded or repeated. It is perhaps slightly too terse given the complete absence of usage context, but every word 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?

For a one-parameter read-only tool with full schema coverage and complete safety annotations, the description covers what is needed to call it and roughly what comes back. The remaining gap is edge-case behavior (dead pane, no foreground process) and the ordering/format of the reported fields.

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 single pane_id parameter is fully documented in the schema, including an example format ('w1:p1'), so the description need not compensate. It adds no meaning beyond the schema, which is the expected baseline when schema coverage is 100%.

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 ('Inspect') and names the exact resources returned: foreground process, PID, and working directory inside a pane. It is clearly distinguishable from generic siblings like pane_get or pane_read by what it reports, though it never names an alternative explicitly.

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?

There is no when-to-use guidance at all: nothing says when an agent should call this instead of pane_get or pane_list, and no preconditions (pane must exist, must have a foreground process) are stated. Usage is only inferable from the one-line purpose.

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