Skip to main content
Glama
walac

perf-mcp

by walac

perf_sched_map

Visualize CPU scheduling patterns as an ASCII map showing task placement per CPU over time to diagnose affinity issues and load imbalances.

Instructions

ASCII CPU activity map showing which task ran on which CPU at each time slice.

Use this for a visual overview of scheduling patterns, CPU affinity issues, and load imbalance.

Key parameters:

  • compact: one-character-per-task view.

  • cpus: restrict to specific CPUs.

  • pids: restrict to specific PIDs.

  • color_pids/color_cpus: highlight specific PIDs/CPUs.

Output: ASCII grid with CPUs as rows and time as columns. Requires: perf sched record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpuNoCPUs to filter
cpusNoCPUs to display in map
pidsNoPIDs to show in map
forceNoDon't complain, do it
inputYesPath to perf.data file
symfsNoSymbol filesystem root
compactNoShow one-letter task state
verboseNoVerbosity level (0-2)
vmlinuxNovmlinux pathname
kallsymsNokallsyms pathname
task_nameNoMap task name(s) to their thread ids
color_cpusNoHighlight these CPUs with color
color_pidsNoHighlight these PIDs with color
fuzzy_nameNoMap fuzzy task name(s)
dump_raw_traceNoDump raw trace in ASCII

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description takes on the full burden of behavioral disclosure. It discloses the output format ('ASCII grid with CPUs as rows and time as columns'), a key prerequisite ('Requires: perf sched record'), and parameter effects (compact, cpus, pids, coloring). While it does not mention failure modes or side effects, the read-only nature is implied by the map output, making it reasonably transparent.

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 front-loaded with the core purpose, followed by usage guidance, key parameters, output format, and prerequisite. It is slightly longer than necessary due to repeating parameter names that already exist in the schema, but each sentence serves a purpose and the structure is logical and scannable.

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 (15 parameters) and the presence of an output schema (so return values need not be explained), the description covers the essential aspects: purpose, usage, output, and prerequisite. It does not explain all parameters, but the schema covers those. The description is complete enough for an agent to decide whether to use it and to understand its core behavior.

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?

The input schema already has 100% description coverage for all 15 parameters. The description adds modest value by explaining 'compact: one-character-per-task view' and grouping related parameters (color_pids/color_cpus), but most of the parameter semantics are already present in the schema. It does not meaningfully deepen understanding of parameters like symfs, vmlinux, or verbose beyond the schema descriptions.

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 opening sentence 'ASCII CPU activity map showing which task ran on which CPU at each time slice' names the specific verb (map), resource (CPU activity), and output format, clearly distinguishing it from sibling tools like perf_sched_latency or perf_sched_timehist. It explains the visual output and use case for scheduling patterns, CPU affinity, and load imbalance.

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 states 'Use this for a visual overview of scheduling patterns, CPU affinity issues, and load imbalance,' giving a clear when-to-use context. It does not explicitly mention when not to use it or name alternative tools, but the visual-overview framing strongly implies differentiation from statistical or script-based siblings.

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