Skip to main content
Glama

Get Symbol Outline

get_symbol_outline

Returns deterministic class and function signatures with imports for an indexed repository, letting AI coding agents orient in a codebase without reading full files.

Instructions

Return deterministic class/function signatures and imports for an indexed repo.

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": {
      "repo": "<repo>"
    },
    "name": "get_symbol_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
repoYes
max_symbolsNo
path_prefixNo
include_docstringsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose one meaningful trait: output is 'deterministic'. It also implies a dependency on prior indexing. However, it says nothing about truncation when max_symbols is hit, whether results are ordered or paginated, or permission/auth requirements.

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?

A single tightly written sentence with the key output description front-loaded and no filler. It is efficient, though its brevity is partly under-specification rather than disciplined density.

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?

An output schema exists, so return values need not be explained. But for a tool with five parameters, zero schema descriptions, and no annotations, the description is thin — it omits the indexing precondition, filter semantics, and truncation behavior that an agent needs before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate and largely fails. It never mentions kind, max_symbols, path_prefix, or include_docstrings; only 'class/function signatures' loosely gestures at the kind filter, leaving four parameters with no meaning beyond their names.

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 — 'Return deterministic class/function signatures and imports' — so an agent knows this produces a code outline rather than search results or repo metadata. It implicitly distinguishes itself from siblings like search_code and get_repo_overview, but never names or contrasts them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage signal is the phrase 'for an indexed repo', which hints at a precondition but does not state it as a requirement or say what happens otherwise. There is no guidance on when to prefer this over search_code or get_repo_overview, and no mention of scoping with path_prefix or kind.

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