Skip to main content
Glama
rbutera

harness-bridge

by rbutera

Codex Explain Code

codex_explain_code

Explain code, logic, or architecture in depth to understand unfamiliar codebases, onboard new developers, or document complex systems.

Instructions

Ask Codex to deeply explain code, logic, or architecture. Useful for understanding unfamiliar code, onboarding, or documenting complex systems.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoDepth of explanation: overview, detailed, or full execution tracedetailed
targetYesWhat to explain: file path, function name, module, or code snippet
contextNoAdditional context about the codebase
threadIdNoContinue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread.
workingDirectoryNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv1.0.0
    • addedInput schema / properties / threadId
      Added value: +{
      +  "description": "Continue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread.",
      +  "type": "string"
      +}
    • removedInput schema / properties / threadKey
      Removed value: -{
      -  "description": "Optional key enabling multi-turn continuity. Calls sharing a key use the same harness conversation and are serialized. Omit it for independent one-shot calls, including parallel reviews.",
      -  "type": "string"
      -}
  2. First observedv0.4.0

TDQS

B3.4/5.0
Behavior2/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 of behavioral disclosure. It does not state whether the tool is read-only, whether it can make changes, how it interacts with the working directory, or what kind of output to expect. For a Codex-powered tool, this is a notable gap.

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

Conciseness4/5

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

The description is concise, with the core purpose front-loaded and supporting use cases in a second sentence. There is no redundant or filler content, though it is not maximally information-dense.

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

Completeness3/5

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

The description is adequate for a read-oriented explanation tool: it states purpose and typical use cases, while the schema covers parameter meaning and defaults. However, with no annotations and no output schema, the agent is left to infer return behavior and safety characteristics, and the sibling tools are not differentiated.

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 description coverage is 80%, so most parameters are already documented in the schema. The description itself adds no parameter-level detail and does not clarify the undocumented workingDirectory parameter, but it does not need to repeat what the schema already provides. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('deeply explain') and the resource ('code, logic, or architecture'), making the tool's purpose immediately understandable. It does not explicitly contrast it with siblings like codex_review_code, but the wording implies explanation rather than review, critique, or implementation.

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 provides concrete use cases: 'understanding unfamiliar code, onboarding, or documenting complex systems.' This gives the agent clear context for when to select this tool, though it does not explicitly say when not to use it or name alternative tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/rbutera/harness-bridge'

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