Skip to main content
Glama
walac

perf-mcp

by walac

perf_buildid_list

List ELF build-id hashes from perf.data to verify symbol resolution by comparing against installed debuginfo packages.

Instructions

List the ELF build-id hashes for binaries referenced in perf.data.

Use this to verify symbol resolution will work: compare build IDs against installed debuginfo packages.

Key parameters:

  • with_hits: only show DSOs that have actual samples.

  • kernel: show the running kernel's build ID.

  • kernel_maps: show kernel build ID with address map.

Output: ' ' per line. Works on any perf.data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoDon't complain, do it
inputYesPath to perf.data file
kernelNoShow running kernel build id
verboseNoVerbosity level (0-2)
with_hitsNoShow only DSOs with hits
kernel_mapsNoShow running kernel build-id and map

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 burden of disclosing behavior. It explains the output format, notes that it 'Works on any perf.data,' and clarifies the effects of the kernel and kernel_maps flags. It does not, however, describe error behavior or permissions needed, but for a read-only listing tool this is sufficient.

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, front-loaded with the main purpose, and uses a clear structure: purpose, use case, key parameters, and output format. Every sentence contributes meaningful information without unnecessary elaboration.

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 that an output schema exists and the input schema covers all parameters, the description adds necessary extra context about the tool's purpose and usage scenario. It also covers the output format and typical use case, making it complete for a straightforward listing tool. It omits only minor details like interaction with force/verbose, which are already in the schema.

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 schema already provides 100% coverage of parameter descriptions. The description's parameter notes restate or slightly reword the schema (e.g., with_hits 'only show DSOs that have actual samples' vs schema 'Show only DSOs with hits'), adding little new information. It does not explain 'force' or 'verbose' beyond their schema descriptions, so the value added is marginal.

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 precise verb and resource: 'List the ELF build-id hashes for binaries referenced in perf.data.' This clearly distinguishes the tool from sibling perf tools, which are about reports, timecharts, or sched operations, and not about build-id verification.

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 a use case: 'Use this to verify symbol resolution will work: compare build IDs against installed debuginfo packages.' This gives a clear context and intent. While it doesn't explicitly mention when not to use it, the guidance is strong enough for selection.

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