Skip to main content
Glama

explain_code

Translates source code into plain English for non-programmers. Ideal for understanding inherited code, due diligence, and onboarding documents. Costs 500 sats via Lightning.

Instructions

Explain what code does in plain English. Unlike code review (which finds problems), this explains purpose and behaviour to a non-programmer. Costs 500 sats via Lightning. Use for: understanding inherited code, due diligence, onboarding docs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoSource code to explain (provide either code or url)
urlNoURL of code file to explain (provide either code or url)
languageNoLanguage hint (optional)
Behavior3/5

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

Discloses cost (500 sats Lightning) and target audience (non-programmer). However, no annotations exist; the description does not cover behavior like output length, error handling, or limitations. Adequate but not detailed.

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?

Three concise sentences, front-loaded with purpose, no redundant words. Every sentence adds value.

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?

Given 3 parameters, no output schema, and complexity of explaining code, the description covers purpose, usage, cost, and alternative. Could mention output format or limits, but overall sufficient.

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 100% with descriptions for each parameter. The description doesn't add new info beyond schema, so baseline 3 is appropriate.

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?

Clearly states it explains code in plain English, and distinguishes from code review (finds problems). The verb 'explain' plus resource 'code' is specific and unambiguous.

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?

Provides explicit contrast with code review, lists specific use cases (inherited code, due diligence, onboarding docs), and mentions cost. Lacks explicit when-not-to-use but is strong overall.

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/Squidboy30/boltwork-mcp'

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