Skip to main content
Glama

Identify current context

cmux_identify

Returns JSON refs for the caller pane and current UI focus (window, workspace, pane, surface) so agents can distinguish their own pane from focused context and anchor new panes beside themselves.

Instructions

Return caller and focused window/workspace/pane/surface refs as JSON. caller = you (the issuing pane); focused = current UI focus — they differ if focus moved away. Use caller.pane_ref as anchor_pane in cmux_new_pane to place panes next to yourself.

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": "cmux_identify"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.13

TDQS

A3.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does add real value by explaining that caller and focused can diverge when focus moves away, but it leaves out that this is a side-effect-free read, what the JSON shape/field names look like beyond 'refs', and whether refs can be stale. For a zero-annotation tool the disclosure is thin.

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?

Three tight sentences, front-loaded with the return statement, then the caller/focused distinction that prevents the most likely misread, then the actionable follow-up. No filler or restated title.

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 must carry return semantics, and it does cover the two key objects and the differ-when-focus-moves case. It stops short of enumerating the ref fields or confirming read-only/no-side-effects, which would fully close the gap for a discovery tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema defines zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The description correctly implies the tool takes no arguments and instead spends its words on return-value semantics.

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?

States a specific verb+resource ('Return caller and focused window/workspace/pane/surface refs as JSON') and immediately disambiguates the two identity concepts: caller = the issuing pane, focused = current UI focus. An agent can tell this apart from siblings like cmux_tree or cmux_list, which enumerate panes rather than report the caller's own identity.

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?

Offers one concrete chaining rule — use caller.pane_ref as anchor_pane in cmux_new_pane — which is genuinely useful routing to a sibling. However, it never states when to call this versus cmux_tree/cmux_list for inspecting the pane topology, nor any when-not condition; the usage is implied by the first sentence rather than declared.

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