Skip to main content
Glama

outline

Explains how a PHP feature or method works before grepping or reading files by mapping relevant classes, call flow, behaviour, wiring, and tests.

Instructions

Call this first, before grep or reading files, to explain or document a feature or how something works ("how does stock reservation work"). From the classes the topic names: the cluster by namespace and layer (kind, docblock summary, public signatures, constants), the interfaces and base classes around it, the flow from the routes, behaviour read in the bodies (guarded throws, branches), container wiring, users and untested classes. A topic naming a method (OrderService::place) outlines what it runs, 3 calls deep.

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

Input Schema

NameRequiredDescriptionDefault
topicYesThe feature in words or class names ("stock reservation"), or one method ("OrderService::place").
formatNotext (default, about 15 KB), full (every list uncut, often too large: prefer section) or json.
sectionNoOnly one section, uncut: what a "+N more: section ..." line names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses output shape (namespace/layer clusters, signatures, constants, routes flow, guarded throws, wiring, untested classes), a depth limit (3 calls deep for method topics), and size cost (~15 KB default, "full ... often too large: prefer section"). It does not state whether the tool is strictly read-only or what happens for an unresolvable topic, leaving a small gap.

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 front-loaded with the most actionable sentence ("Call this first ..."), but the middle is a dense run-on enumeration of clustered artifacts that is hard to parse and includes vague items ("the interfaces and base classes around it", "users and untested classes"). The content is largely justified, but the structure is a single packed paragraph rather than grouped clauses.

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?

For a tool with no annotations, no output schema, and three parameters with full schema coverage, the description is nearly complete: it covers when to call, what comes back, depth limits, and output size trade-offs. It omits error/empty-topic behavior and any statement of read-only safety, which keeps it at 4.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it clarifies that a topic may be a single method like OrderService::place and that such a topic outlines what it runs three calls deep. That deepens the semantics of the required parameter rather than restating it; format/section behavior is already covered by the schema.

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 states a specific verb (explain/document) and resource (a feature or how something works in the codebase), with a concrete example ("how does stock reservation work"). It also enumerates what the outline contains. It does not differentiate itself from the graph siblings (get_neighbors, get_node, impact_of) by name, so it lands at 4 rather than 5.

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?

Strong ordering guidance: "Call this first, before grep or reading files" tells the agent exactly where this belongs in a workflow, and the topic-naming-a-method case is called out. There is no explicit when-not or named alternative among the sibling tools, so it stops short of a 5.

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

Deploy Server

Other Tools