Skip to main content
Glama

Codebase scout

codebase_scout
Read-only

Scout a codebase read-only to find entry points, execution flow, and exact line-number locations for one focused code question. Split broad questions into multiple calls.

Instructions

Разведка кода проекта только для чтения: точки входа, поток выполнения и места в коде с номерами строк для одного вопроса. Широкий вопрос разбейте на несколько вызовов. Ответ содержит отчёт в Markdown и data.locations.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>",
      "workdir": "<workdir>"
    },
    "name": "codebase_scout"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoМодель Codex. По умолчанию — модель возможности или настройка сервера
queryYesОдин вопрос об устройстве кода
effortNoEffort рассуждений. По умолчанию — effort возможности или настройка сервера
timeoutNoРекомендованный бюджет времени в секундах. Агент получает его в инструкциях, обрывает вызов только жёсткий предел сервера
workdirYesАбсолютный путь к проекту
focus_filesNoФайлы и символы, с которых начать

Output Schema

NameRequiredDescriptionDefault
dataYes
errorYes
modelYes
stepsYes
statusYes
contentYes
capabilityYes
session_idYes
duration_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

The description reinforces the readOnlyHint annotation ('только для чтения') rather than contradicting it, and adds value beyond annotations by disclosing the shape of the result: a Markdown report plus data.locations. It also warns that broad scope should be decomposed into several calls, which is behavioral guidance not captured in the schema.

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 short sentences, each earning its place: purpose first, then the decomposition rule, then the return shape. Nothing is redundant and the key constraint is front-loaded.

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?

With six parameters, an output schema, and readOnlyHint annotations, the definition covers purpose, scope constraint, and return format adequately; output details don't need spelling out because an output schema exists. The only gap is guidance relative to the sibling tools, which the description never addresses.

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 100%, so every parameter including model, effort, timeout, workdir, and focus_files is already documented. The description only reinforces the single-question constraint for query and adds no new meaning about workdir, timeout budget, or focus_files, so the baseline of 3 applies.

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 gives a specific verb and resource — read-only code reconnaissance — and enumerates what it returns: entry points, execution flow, and code locations with line numbers. It is clear what the tool does, but it never names or differentiates itself from the siblings codex_agent, codex_continue, or docs_research.

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?

It states a concrete usage constraint — one question per call, with broad questions split across multiple calls — which directly shapes how an agent should invoke it. It stops short of explicit exclusions or routing advice (e.g., when to prefer docs_research or codex_continue instead).

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