Skip to main content
Glama

pwndbg_slab

Display kernel slab cache information for analyzing memory allocation patterns and debugging kernel memory issues.

Instructions

Display kernel slab cache information.

pwndbg command: slab Source: pwndbg/commands/slab.py Category: Kernel

Args: session_id: The UUID of the session. cache_name: Optional slab cache name to inspect.

See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/slab/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
cache_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full burden but only states it 'displays' information, implying a read operation. It does not disclose whether it requires a running session, what output format to expect, or any side effects. The link to documentation is external and not part of the description itself.

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 brief and front-loads the main purpose. The inclusion of source file and category adds metadata that may be redundant for an AI agent but does not significantly detract. It is concise enough for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool requires awareness of kernel debugging context, but the description does not mention prerequisites (e.g., kernel mode, specific kernel configuration). There are many sibling kernel-related commands, but no guidance on how this tool fits into a debugging workflow. The output schema exists but is not summarized.

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 coverage is 0%, and the description provides brief parameter descriptions: 'session_id: The UUID of the session.' and 'cache_name: Optional slab cache name to inspect.' This adds some meaning beyond the schema by specifying the format (UUID) and optionality, but lacks details like default values or allowed formats.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Display kernel slab cache information.' which clearly identifies the verb (Display) and resource (kernel slab cache). However, it does not explicitly differentiate from related sibling tools like pwndbg_arena or pwndbg_heap, which also display memory allocation structures, so it misses some distinctiveness.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description lacks any context about typical use cases, prerequisites, or situations where this command is appropriate compared to other memory inspection commands.

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/Micro-Evaluation-Group/pwndbg-lldb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server