Skip to main content
Glama

outline

Extract signatures, doc lines, and line ranges for every class and function in a file while hiding bodies, reducing the cost of reading code.

Instructions

Signatures, doc lines and line ranges for every class/function in one file, with bodies hidden. Much cheaper than reading the file.

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": {
      "file": "<file>"
    },
    "name": "outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does state the key behavioral trait that bodies are elided, and flags the cost advantage over full reads, but says nothing about handling of missing/unparseable files, supported languages, or file path conventions. For a low-risk read operation this is adequate but not rich.

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?

Two short sentences, zero redundancy, with the returned content front-loaded and the cost rationale as a supporting clause. Nothing could be removed without losing information.

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?

An output schema exists, so return-value formatting need not be spelled out, and the description correctly focuses on the shape of the output and its cost profile. The remaining gap is minor: no guidance on path format or failure behavior for the one required parameter.

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 0% and the single 'file' parameter has no description, so the description must compensate; 'in one file' does clarify that the parameter is a single file rather than a directory, glob, or list. It does not specify path format (absolute vs repo-relative) or file type expectations.

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 names the exact resource returned (signatures, doc lines and line ranges for every class/function in one file) and a scope limit (bodies hidden), which is far more specific than the bare name 'outline'. It does not explicitly contrast itself with the sibling get_symbol, but the 'every class/function in one file' framing makes the aggregate-vs-single-symbol distinction inferable.

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

Usage Guidelines3/5

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

'Much cheaper than reading the file' implies the primary use case: use this for file structure instead of reading the whole file. However, there is no explicit when-not guidance and no pointer to get_symbol for a single symbol or repo_map for cross-file structure, so selection guidance is implied rather than stated.

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