Skip to main content
Glama
UnboundCompute

lachesis-mcp

Official

read_body

Retrieve the exact source code of any function or method by name or node ID, with file, line numbers, and byte offsets, plus a truncated flag when content exceeds the limit.

Instructions

Read a function/method's real source (L3) — the 'open this and read it' move, so an agent never falls back to cat. Accepts a name or a node_id; returns the exact source span from byte offsets plus {node_id, name, file, start_line, end_line}, capped at max_chars (default 4000) with a truncated flag. If the file/offsets are unavailable it reconstructs a best-effort body from the function's L3 body nodes in line order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
formatNotext (compact, default) | json (structured result page)
node_idNo
max_charsNo
Behavior4/5

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

No annotations are present, so the description carries the full burden. It discloses output fields, the max_chars cap with truncated flag, and the best-effort fallback behavior when file/offsets are unavailable. It does not state explicit error behavior or read-only non-mutation guarantees, but 'read' plus the detail given is strong.

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 front-loaded. The first sentence establishes the move, the second specifies input and output shape, and the third covers fallback behavior. No sentence is wasted.

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?

The description gives enough to call the tool successfully: accepted identifiers, return content, truncation behavior, and fallback. It doesn't describe invalid-input behavior or what happens if neither name nor node_id is provided, but that is a minor gap given the rest of the detail.

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 only 25%, so the description compensates: it explains that name or node_id identify the function, and that max_chars caps output with a truncated flag. Format is still left to the schema enum, but the description covers the otherwise underspecified key parameters.

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?

States a clear action ('Read') and resource: 'a function/method's real source (L3)'. It is specific enough to distinguish from generic file-reader siblings and explicitly contrasts itself with cat.

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 establishes this tool as the default 'open this and read it' move for function/method source, saying the agent should not fall back to cat. It provides clear context for when to use it, though it doesn't explicitly list when not to use sibling tools like open_file.

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/UnboundCompute/lachesis'

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