Skip to main content
Glama

detect_ipc_deadlocks

Read-onlyIdempotent

Reconstructs the QNX Neutrino IPC wait-for graph across send, reply, and mutex states, then extracts minimal deadlock cycles with MsgDeliverEvent or SIGEV_PULSE fixes.

Instructions

Reconstruct the live QNX Neutrino (pid, tid) -> chid -> owner_pid Wait-For Graph across STATE_SEND, STATE_REPLY, and STATE_MUTEX, extracting minimal Tarjan/Johnson deadlock cycles and MsgDeliverEvent/SIGEV_PULSE fixes.

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

Input Schema

NameRequiredDescriptionDefault
kevBase64NoBase64-encoded binary QNX .kev trace buffer (QNXKEV80).
tracePathNoPath to a .trace / .json / .kev file, or built-in fixture name (adas_ipc_deadlock, ventilator_prio_inversion, industrial_ethercat_jitter, healthy_baseline).
traceContentNoRaw QNX traceprinter text log or qnx-trace-v1 JSON string.

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine value by disclosing the analysis method (Tarjan/Johnson for minimal cycles) and the shape of remediation it emits. It stops short of saying how precedence between the three trace-input parameters works or what happens on malformed input.

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?

A single front-loaded sentence that spends its words on the graph model and the algorithm rather than filler. The jargon density is high but appropriate for the domain, and nothing is redundant.

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 tool with no output schema, the description does indicate what comes back (minimal deadlock cycles plus pulse-based fixes), which is the key missing piece. It still leaves the caller without selection guidance among the three alternative trace inputs and without a clear pointer to when this analysis is warranted over its siblings.

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 each of kevBase64, tracePath, and traceContent is documented with format and fixture names, so the baseline is 3. The description does not discuss that all three are optional or how conflicts among them resolve, leaving that entirely to the schema.

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?

Uses a specific verb ("Reconstruct") against a precisely named resource (the (pid, tid) -> chid -> owner_pid Wait-For Graph) and scopes it to the three QNX states it inspects. The mention of "deadlock cycles" and "MsgDeliverEvent/SIGEV_PULSE fixes" makes it unambiguously the cycle-detection tool rather than the sibling audits for priority inversion or WCET.

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?

No sentence says when to reach for this tool versus inspect_qnx_trace or audit_priority_inversions, nor what precondition (e.g. a captured .kev trace) must hold first. The agent can infer intent from "deadlock" but gets no explicit routing or exclusion guidance.

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