Skip to main content
Glama

file_outline

Read-onlyIdempotent

Extract a file's functions, classes, types, and headings with line numbers to review structure without reading full contents.

Instructions

Functions/classes/types/headings of a file with line numbers.

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": "file_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope, so the safety profile is fully covered. The description adds the useful fact that output is keyed by line numbers and covers structural elements, but says nothing about supported file types, parse failure behavior, or output shape for unparseable files.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short fragment with zero padding, so nothing is wasted. However, the missing verb and the total absence of structural cues (no leading action statement, no return-format note) make it under-specified rather than genuinely well-structured.

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?

This is a simple, single-parameter, read-only tool with no output schema, so the description's burden is modest and it does sketch the return contents. It still leaves out the shape of the returned entries and any language/size limitations, which an agent calling a parser-style tool would want.

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?

Only one parameter exists and schema description coverage is 100%, so the schema already documents `path`. The description adds no path semantics (absolute vs relative, whether directories are accepted), which is the baseline expectation rather than a strength.

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 concrete resource (a file) and the exact structural elements returned (functions/classes/types/headings with line numbers), which is far more specific than a name restatement. It is a noun fragment with no verb, and it never distinguishes itself from structural siblings such as read_symbol or read_slice, so it falls short of a 5.

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?

There is no when-to-use guidance at all: no statement of when to prefer an outline over read_slice, read_symbol, search_compact, or json_shape. The agent must infer the selection rule purely from the listed return contents.

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