Skip to main content
Glama

audit_priority_inversions

Read-onlyIdempotent

Detect unbounded QNX priority inversions by analyzing .kev traces for high-priority SCHED_FIFO threads blocked in STATE_REPLY or STATE_MUTEX while unboosted servers are preempted.

Instructions

Detect unbounded priority inversions where high-priority SCHED_FIFO threads block in STATE_REPLY or STATE_MUTEX while medium-priority threads preempt unboosted servers (_NTO_CHF_FIXED_PRIORITY or missing PTHREAD_PRIO_INHERIT).

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

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).
minHighPrioNoMinimum QNX priority threshold for high-priority RT threads (default: 50).
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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine domain semantics about which QNX conditions are detected, but says nothing about what is produced (no output schema), how large a trace can be, or how zero required inputs are handled.

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 with the verb first and no filler. It is dense with nested jargon clauses that slow parsing, but every clause carries diagnostic meaning rather than redundancy.

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 read-only analyzer with no output schema and four all-optional inputs, the definition leaves two important holes: what the result looks like (findings list? counts? verdict?) and what happens when no trace source is given. The detection target itself is described thoroughly.

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 coverage is 100%, so the schema already documents all four inputs including the fixture names and the default of 50 for minHighPrio. The description adds no format or selection guidance, and notably does not explain how the three mutually exclusive-looking input sources (kevBase64, tracePath, traceContent) relate or what happens when none is supplied.

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 precise verb and target ('Detect unbounded priority inversions') and pins the exact phenomenon: SCHED_FIFO threads blocking in STATE_REPLY/STATE_MUTEX while medium-priority threads preempt unboosted servers. This is specific enough that an agent can distinguish it from detect_ipc_deadlocks or audit_wcet_deadlines without opening another schema.

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 only implied by the diagnostic condition being described; there is no explicit 'use when X, not Y' statement, no mention of the sibling audits, and no prerequisites. An agent must infer the scenario from the symptom description alone.

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