Skip to main content
Glama
walac

perf-mcp

by walac

perf_kwork_report

Analyze kernel work item statistics to locate high-cost interrupt and workqueue handlers by count, runtime, and max latency.

Instructions

Kernel work item statistics: IRQ, softIRQ, and workqueue handlers with count, total runtime, and max latency.

Use this to find the most expensive interrupt handlers or work items.

Key parameters:

  • sort: 'count', 'runtime', 'max', 'avg'.

  • name: filter to a specific handler name.

  • kwork: filter by type -- 'irq', 'softirq', 'workqueue'.

Output: per-handler statistics table. Requires: perf kwork record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpuNoCPUs to filter
nameNoFilter by work name
sortNoSort by key(s): count,runtime,max,avg
timeNoTime span to analyze
forceNoDon't complain, do it
inputYesPath to perf.data file
kworkNoWork type to trace (irq, softirq, workqueue)
symfsNoSymbol filesystem root
use_bpfNoUse BPF for tracing
verboseNoVerbosity level (0-2)
vmlinuxNovmlinux pathname
kallsymsNokallsyms pathname
with_summaryNoShow summary along with detailed output
dump_raw_traceNoDump raw trace in ASCII

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the output (per-handler statistics table) and the prerequisite (perf kwork record), but does not discuss read-only nature, error behavior, or any edge cases. It is not misleading, but not rich either.

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?

The description is well-structured: a bold summary, a use-case line, key parameters in bullet-like lines, output line, and requirement line. Every sentence adds value, and there is no redundancy or fluff.

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?

Given the tool's complexity (14 params, output schema), the description provides a concise overview covering purpose, typical use, key filters, output, and prerequisite. It leaves parameter details to the schema, which is acceptable. It could include an example invocation, but the summary is sufficient.

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% with adequate descriptions for all 14 parameters. The description highlights three key parameters (sort, name, kwork) and repeats their allowed values, but adds no new information beyond what the schema already provides. Baseline 3 is appropriate.

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?

The description clearly states the tool provides kernel work item statistics (IRQ, softIRQ, workqueue) with count, total runtime, and max latency. It further clarifies the use case: 'Use this to find the most expensive interrupt handlers or work items.' The sibling differentiation is implicit by focusing on report-style post-processing (Requires: perf kwork record) versus live tools like perf_kwork_top.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use it ('Use this to find the most expensive interrupt handlers or work items') and notes the prerequisite 'Requires: perf kwork record.' It does not explicitly name alternatives or state when not to use, but the context is clear enough for an agent to choose between report and other kwork tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/walac/perf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server