Skip to main content
Glama
walac

perf-mcp

by walac

perf_timechart

Generate an SVG timechart from perf.data to visualize CPU activity, task scheduling, and I/O events, with filtering by process or event type.

Instructions

Generate a timechart SVG showing CPU activity and task scheduling over time as a visual timeline.

Key parameters:

  • output: SVG file path (default: output.svg).

  • process: filter to specific process name(s).

  • power_only: show only CPU power state changes.

  • tasks_only: show only task scheduling.

  • io_only: show only I/O activity.

  • topology: include CPU topology.

  • width: SVG width in pixels.

Output: returns the SVG file path and size. Requires: perf timechart record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoDon't complain, do it
inputYesPath to perf.data file
symfsNoSymbol filesystem root
widthNoSVG width in pixels
outputNoOutput SVG file path (default: output.svg)
io_onlyNoShow I/O-related events only
processNoOnly show specific process(es)
verboseNoVerbosity level (0-2)
proc_numNoNumber of processes to display
topologyNoShow CPU topology
callchainNoRecord callchain
highlightNoHighlight process by name
power_onlyNoOnly show CPU power events
tasks_onlyNoOnly show task events
io_min_timeNoMinimum I/O time to display (ns)
io_merge_distNoMerge I/O events within distance (ns)
io_skip_eagainNoSkip EAGAIN I/O events

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations available, the description carries the full burden. It discloses the output ('returns the SVG file path and size') and the prerequisite ('Requires: perf timechart record'), but it does not mention limitations, error handling, or side effects beyond creating an SVG file. This partial transparency leaves gaps.

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?

The description is well-structured with a clear opening purpose, a 'Key parameters' summary, and separate lines for 'Output' and 'Requires.' It avoids unnecessary detail and stays within a compact size, though the parameter list is somewhat redundant with the schema.

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?

Given the tool's complexity (17 parameters) and the existence of an output schema, the description provides adequate context about the tool's purpose and key options. However, it lacks guidance on when to use specific filters, how they interact, or typical workflows, leaving some gaps for a heavy parameterized tool.

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 the description only highlights a subset of parameters in a 'Key parameters' list without adding new semantic meaning. The baseline of 3 applies because the schema already documents parameters well; the description adds marginal value by emphasizing common filters.

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's primary function: 'Generate a timechart SVG showing CPU activity and task scheduling over time as a visual timeline.' This specific verb-resource pairing distinguishes it from sibling tools like perf_sched_map or perf_report, which focus on other forms of analysis or output.

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 provides clear context on when to use the tool by explaining 'Requires: perf timechart record' and listing key filters such as process, power_only, and tasks_only. However, it does not explicitly exclude alternatives or describe trade-offs compared to other perf visualization 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