Skip to main content
Glama
walac

perf-mcp

by walac

perf_kvm_stat_report

Analyze KVM VM exit reasons to diagnose virtualization overhead, showing counts and time per exit type to identify idle guests, slow device emulation, or memory mapping churn.

Instructions

KVM virtual machine exit analysis: shows VM exit reasons, counts, and time per exit type.

Use this to diagnose virtualization overhead — excessive HLT exits indicate idle guests, I/O exits indicate slow device emulation, EPT violations indicate memory mapping churn.

Key parameters:

  • key: sort by 'sample' (count), 'time', 'max', 'min'.

  • event: filter to specific exit type (e.g. 'HLT').

  • vcpu: filter to specific vCPU.

  • guest/host: filter to guest or host events.

Output: exit reason table with count, time, and percentage. Requires: perf kvm stat record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpuNoCPUs to filter
keyNoSort key
pidNoFilter by PID
hostNoTrace host events
sortNoSort by key(s)
vcpuNoFilter by vCPU
eventNoFilter by KVM exit event type
forceNoDon't complain, do it
guestNoTrace guest events
inputYesPath to perf.data.guest file
outputNoOutput file name
displayNoEvents to display
verboseNoVerbosity level
all_cpusNoSystem-wide collection from all CPUs
guest_codeNoDisplay guest code
guestmountNoGuest OS root file system mount point
mmap_pagesNoNumber of mmap pages
guestmodulesNoGuest modules file
guestvmlinuxNoGuest vmlinux pathname
guestkallsymsNoGuest kallsyms file
proc_map_timeoutNoPer-thread proc mmap processing timeout in ms

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 burden and does provide useful behavioral context: it states the required prerequisite ('Requires: perf kvm stat record'), the output shape (exit reason table with count, time, percentage), and interpretive behaviors. It does not explicitly mention permissions or side effects, but as a read-only analysis tool this is a reasonable disclosure.

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 compact and well-structured: it leads with purpose, then use case, then key parameters, then output and requirements. Every sentence contributes value; there is no redundancy or filler.

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 (21 parameters) and the presence of a complete input schema and output schema, the description adequately covers the core purpose, diagnostic use cases, key parameter meanings, output, and prerequisite. It could be slightly more complete by mentioning side-effect/permission details, but overall it provides enough context for correct selection and invocation.

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?

Schema description coverage is 100%, so the baseline is 3. The description goes beyond the schema by detailing sort key values ('sample', 'time', 'max', 'min'), giving an example exit type ('HLT'), and explaining the guest/host filter semantics. Not all 21 params are covered, but the most decision-relevant ones are enriched.

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 opens with a specific verb+resource pairing: 'KVM virtual machine exit analysis: shows VM exit reasons, counts, and time per exit type.' This clearly distinguishes the tool from the many perf sibling tools by stating exactly what it analyzes and what it reports.

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?

It gives explicit use guidance: 'Use this to diagnose virtualization overhead' and provides concrete diagnostic examples (HLT exits, I/O exits, EPT violations). It does not name alternative tools or state when not to use it, so it falls just short of a 5.

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