Skip to main content
Glama

pwndbg_errno

Resolves errno codes to their string names and descriptions. Displays current errno or details for a given error number.

Instructions

Convert errno to its string representation.

pwndbg command: errno Source: pwndbg/commands/errno.py Category: Linux/libc/ELF

Without arguments, shows the current errno value. With a number, shows the name and description for that error code.

Args: session_id: The UUID of the session. err: Optional error code to look up.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
errNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, but the description discloses the two behaviors: with and without the err argument. It also provides source and category, though it omits details like side effects or permissions, which are likely minimal for a read-only lookup.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is fairly concise but includes extraneous metadata (source, category, link) that could be omitted or shortened. However, the core information is front-loaded and clear.

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?

With an output schema present, the description does not need to explain return values. It covers the core functionality and provides a link for further details, making it sufficiently complete.

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 0%, but the description adds meaning: 'Optional error code to look up' explains the err parameter beyond the schema's default null. Session_id is required but not elaborated, which is acceptable as it is a common pattern.

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 converts errno to its string representation. It distinguishes itself from sibling tools by focusing on errno lookup, a unique function among the many pwndbg commands.

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 explains usage without arguments (shows current errno) and with a number (shows name and description). It does not explicitly say when not to use, but it is sufficient for a simple lookup tool.

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