AKADATA LIMITED
AKAMAN MCP Interface
The AKAMAN MCP tool, query model, progressive disclosure behaviour, and local documentation sources.

AKAMAN
A small Linux C utility that retrieves the compact documentation fragment an AI agent needs from the host where it is running.
The MCP interface: one small, deliberate surface
The Model Context Protocol is a structured way for an AI application to talk to a server. MCP gives the application a repeatable contract:
- connect to a server,
- discover the tools the server exposes,
- inspect each tool’s argument schema,
- call a tool with structured arguments,
- receive a structured result.
Coding agent / AI application
│
│ MCP client
▼
MCP server
(AKAMAN)
│
▼
local system documentationFor AKAMAN the interface is intentionally tiny. It exposes exactly one MCP tool:
man(query, section?, source?)query- Required. The thing being looked up — a command, an option, a named section, or a header symbol.
section- Optional. A numeric manual section (for example
2for system calls) or a named section heading (for exampleexit status). source- Optional. Explicitly selects
man,doc, orheaders. A selected source is never silently substituted.
The three sources
man— the native installed manual pages. AKAMAN delegates discovery and rendering to the host’s ownmanrather than building a second index.doc— installed documentation under/usr/share/doc: plain text, Markdown, READMEs, and HTML files.headers— declaration blocks from installed C/C++ system headers.
Progressive disclosure
This is one of AKAMAN’s strongest ideas. A bare query such as akaman grep can return the synopsis plus a compact map of the real section names in the page. The agent can then make a second, targeted request — akaman "grep exit status" or akaman "grep -r" — and receive only that part. The agent discovers what is available first, then asks for exactly the detail it needs. That is far better than dumping a whole manual into context “just in case”.
Focused answers are budget-capped at roughly 400 estimated tokens, so an agent can call AKAMAN repeatedly without letting reference material dominate its context.