Skip to main content
Glama
EDMMY

codebase-bridge-mcp

by EDMMY

ask_codebase

Ask natural-language questions about your local codebase and receive synthesized answers with file:line references. Reuse thread names for turn-based steering to maintain context.

Instructions

Ask a natural-language question about the local codebase, with turn-based steering.

Headless Claude Code explores the repo READ-ONLY (Read/Grep/Glob) and returns a synthesized answer with file:line references -- no need to attach or paste files.

thread: optional name (e.g. "auth-investigation"). Reuse the SAME name across questions to STEER: each follow-up keeps the prior session's context, so you can redirect ("no, the token check is in middleware.py -- re-check there") and it stays cheap (prompt-cache hits). Omit for a one-off fresh session. model: optional model (e.g. "sonnet", "opus"). For a thread it BINDS on the first call; a DIFFERENT model on an existing thread is refused, because switching forces a full-context reprocess -- start a new thread instead. Ephemeral (no-thread) calls just use the given model. effort: optional reasoning effort -- low, medium, high, xhigh, max. Per-call (safe to vary within a thread; unlike model it does not invalidate the cache). Lower = cheaper/faster; raise it for hard cross-file reasoning. show_steps: when true, append the exploration trail (which files it read, what it grepped) so you can see HOW it reached the answer and steer the next turn.

Each answer ends with a [bridge] cost footer (call cost + cache hit rate, plus the thread's running total). Call bridge_cost for the full ledger.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
effortNo
threadNo
questionYes
show_stepsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description fully discloses the tool's read-only nature ('explores the repo READ-ONLY'), exploration methods (Read/Grep/Glob), return format (synthesized answer with file:line references and cost footer), thread behavior (context caching for steering), model binding rules, effort variability, and the optional show_steps to reveal the exploration trail. This exceeds what is required for confident invocation.

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 well-structured, starting with the primary purpose followed by parameter details. It is efficient, with each sentence serving a clear purpose. However, it is somewhat lengthy; a touch more conciseness could be achieved without losing clarity.

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 the tool's complexity (5 parameters, turn-based steering, model binding, caching), the description covers all essential behavioral and contextual aspects: usage scenarios, parameter interactions, cost reporting, and output format. Since an output schema exists, omission of explicit return value details is acceptable. A minor gap is the lack of error condition description, but overall it is complete enough for correct invocation.

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 0%, so the description must compensate. It explains all five parameters: the required 'question,' optional 'thread' for steering, 'model' with binding rules, 'effort' with allowed values (low, medium, high, xhigh, max), and 'show_steps' for transparency. Although defaults are not explicitly stated, the descriptions are clear and add significant meaning beyond the raw schema.

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 states the tool's core function: 'Ask a natural-language question about the local codebase, with turn-based steering.' It uses specific verbs ('ask,' 'steer') and a well-defined resource ('local codebase'), and distinguishes itself from siblings (bridge_cost, bridge_forget) by focusing on querying and analysis.

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 explains when to use a thread (for multi-turn steering) versus one-off queries, and how to vary effort within a thread. It also notes that switching models on an existing thread is refused, prompting the user to start a new thread. While it mentions bridge_cost for cost details, it does not explicitly exclude other alternatives, but the context is clear.

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/EDMMY/codebase-bridge-mcp'

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