Skip to main content
Glama

get_docs

Retrieve Elixir module and function documentation from compiled .beam files to understand parameters and usage. Ideal for clarifying API behavior without network access.

Instructions

Get @moduledoc/@doc documentation for an Elixir module or function. Reads from compiled .beam files (local, no network).

WHEN TO USE: You need to understand what a function does, its parameters, or how to use a module. NOT FOR: Finding what calls a function (use xref_callers). Evaluating code (use project_eval).

Examples: "GenServer", "String.split", "String.split/2", "c:GenServer.handle_call/3" (prefix c: for callbacks).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
referenceYesModule name, Module.function, or Module.function/arity
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that documentation is read from compiled .beam files and that no network access is involved, which are important behavioral traits. It could add more about error handling or return format, but the core behavior is well explained.

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 with sections for purpose, when to use, not for, and examples. Every sentence contributes useful information, and there is no redundancy or filler.

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

Completeness5/5

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

For a simple 1-parameter tool with no output schema, the description covers purpose, usage constraints, examples, and exclusions. It provides sufficient context for an agent to select and invoke the tool correctly without needing additional information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 100% coverage for the single reference parameter, and the description adds substantial value by providing example formats (Module, Module.function, Module.function/arity, callback prefix). This gives the agent concrete syntax guidance beyond the schema's generic type definition.

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 identifies the tool as retrieving @moduledoc/@doc documentation for Elixir modules/functions. It specifies the resource (Elixir documentation) and distinguishes itself from siblings by noting it reads from compiled .beam files locally and is not for finding callers or evaluating code.

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

Usage Guidelines5/5

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

The description provides explicit 'WHEN TO USE' and 'NOT FOR' sections, naming alternatives like xref_callers and project_eval. It also clarifies the local-only nature (no network) and gives concrete usage examples, making it clear when to select this 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/JediLuke/BeamScope-MCP'

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