Skip to main content
Glama

get_outline

Return a lightweight file skeleton with classes, methods, functions, headers, and line numbers to inspect code structure without reading the whole file and save tokens.

Instructions

Returns a lightweight file skeleton (classes, methods, functions, headers, line numbers) without reading the whole file. Saves ~90% of tokens.

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": {
      "path": "<path>"
    },
    "name": "get_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.1
    • changedInput schema / properties / workspace_dir / default
      Previous value: -"."New value: +""
  2. First observedv1.0.0

TDQS

B3.3/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 behavioral burden. It conveys a useful trait beyond structure by stating that the file is not read in full and that the result is a reduced representation (~90% token savings). It is silent on permissions, error behavior for nonexistent paths, and whether any file read occurs at all, which leaves real gaps for a zero-annotation tool.

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, the primary capability front-loaded and the token-cost rationale second. No redundancy, no filler.

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 the description need not explain the skeleton's return shape, and the description adequately frames scope. However, `workspace_dir` is completely unexplained and `path` semantics are missing, which for a two-parameter tool with 0% schema coverage is a meaningful incompleteness.

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 2 parameters, and the description says nothing about `path` (format? absolute? relative?) or `workspace_dir` (an empty-defaulted scoping parameter whose meaning is entirely undefined). The description does not compensate for the schema gap.

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?

States a specific verb and resource (returns a file skeleton) and enumerates the contents: classes, methods, functions, headers, line numbers. An agent knows exactly what it gets. No sibling is named or contrasted, but none of the listed siblings appear to overlap directly.

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?

The phrase 'without reading the whole file. Saves ~90% of tokens' implies the intended use (survey a file cheaply before reading it in full), but usage is only implied. There is no explicit when-to-use, when-not-to-use, or named alternative for full reads.

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