Skip to main content
Glama
walac

perf-mcp

by walac

perf_evlist

List events in a perf.data file to see what was recorded, including type, config, and sampling settings. Use it first to guide subsequent perf analysis.

Instructions

List events in a perf.data file. Always call this first to understand what was recorded before using other tools.

Shows each event's name (e.g. 'cpu/cycles/'), type, config, and sampling settings. Use freq=true to see sample frequencies, group=true to see event grouping, verbose=1 for full perf_event_attr details.

Output: one event per line (e.g. 'cpu/cycles/Pu'). No prerequisites — works on any perf.data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
freqNoShow the sample frequency used for each event
forceNoDon't complain, do it
groupNoShow event groups
inputYesPath to perf.data file
verboseNoVerbosity level (0-2)
trace_fieldsNoShow tracepoint fields

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses the output format ('one event per line'), the data shown (name, type, config, sampling settings), and states there are no prerequisites. While it doesn't explicitly say 'read-only,' the verb 'List' and absence of mutation language make the behavior clear.

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?

Every sentence earns its place: purpose, usage, parameter notes, output format, and prerequisites are covered in a short, front-loaded structure with no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with six parameters, an output schema, and no annotations, the description covers purpose, usage, key parameters, output, and prerequisites. It is complete enough for an agent to invoke correctly without additional context.

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?

All six parameters have schema descriptions (100% coverage), and the description adds extra guidance for freq, group, and verbose by explaining what each flag enables (e.g., 'verbose=1 for full perf_event_attr details'). This exceeds the baseline for a fully-schema-covered tool, though force and trace_fields aren't mentioned.

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?

Description opens with a specific verb-resource pair: 'List events in a perf.data file.' It also differentiates itself from sibling perf tools by stating 'Always call this first to understand what was recorded before using other tools,' making its role in the workflow explicit.

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?

Provides clear context: 'Always call this first' and 'No prerequisites — works on any perf.data.' It does not name an alternative tool for specific scenarios, but the 'first before other tools' instruction gives unambiguous usage timing.

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