Skip to main content
Glama
walac

perf-mcp

by walac

perf_lock_info

Display lock type and configuration summaries from perf.data files, enabling analysis of kernel lock usage and potential contention.

Instructions

Display general information about locks in perf.data.

Shows lock types and configurations found in the recording.

Output: lock type and configuration summary. Requires: perf lock record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpuNoCPUs to filter
pidNoFilter by PID
tidNoFilter by TID
forceNoDon't complain, do it
inputYesPath to perf.data file
quietNoDo not show any warnings
verboseNoVerbosity level (0-2)
vmlinuxNovmlinux pathname
kallsymsNokallsyms pathname
dump_raw_traceNoDump raw trace in ASCII

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full transparency burden. It does disclose a behavioral requirement ('Requires: perf lock record') and the output format, which adds context beyond the schema. However, it does not state safety characteristics (e.g., read-only nature) or potential side effects, though the verb 'Display' implicitly suggests a read operation.

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 concise (four short sentences) and front-loaded with the primary purpose. The 'Output:' and 'Requires:' sections are clearly structured. However, the first two sentences ('Display general information...' and 'Shows lock types...') are somewhat redundant, which prevents a 5.

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 has 10 parameters, no annotations, and an output schema, the description provides essential context: the prerequisite file and the output type. The schema covers parameter details, and the output schema covers return values. However, it lacks explicit differentiation from sibling lock tools, which would make it more complete.

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?

All 10 parameters have schema descriptions (100% coverage), so the baseline is 3. The tool description adds no parameter-specific meaning beyond what the schema already provides, but it doesn't need to since the schema is comprehensive.

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 displays general information about locks in perf.data, specifically lock types and configurations. This distinguishes it from sibling tools like perf_lock_contention and perf_lock_report, which focus on contention and detailed reports respectively.

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 a clear prerequisite (requires perf lock record) that establishes when the tool is usable. However, it does not explicitly mention alternatives or when not to use this tool versus other lock-related tools, so it misses the 'when-not/alternatives' aspect for 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