Skip to main content
Glama

tier_slice

Fetches exact L3 source lines for one or more repo.tier symbols, returning @module#symbol line ranges plus fenced code slices; already-served slices are stubbed unless forced.

Instructions

Fetch exact L3 source lines for one or more symbols recorded in a repo.tier symbol table. Returns @module#symbol [Lstart-Lend] plus a fenced source slice. Already-served slices are stubbed unless force=true.

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>",
      "module": "<module>",
      "symbols": "<symbols>"
    },
    "name": "tier_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
forceNo
moduleYesmodule section id or relative file path
symbolsYes
context_linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/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 describes the return shape ('@module#symbol [Lstart-Lend] plus a fenced source slice') and discloses a non-obvious caching/deduplication behavior where already-served slices are stubbed unless force=true. It omits failure modes (unknown symbol), permission requirements, and any size limits, which keeps it from a 5.

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?

Three tightly packed sentences with zero filler: purpose first, then return format, then the one behavioral caveat. Every sentence contributes information an agent would otherwise have to guess.

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?

There is no output schema, and the description usefully explains what comes back, so the return side is covered. But for a 5-parameter tool with 20% schema coverage, the silent parameters (path, context_lines) leave real gaps an agent must infer from field names alone.

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 description coverage is only 20%, so the description should compensate, and it partially does: it explains what force=true overrides and that symbols is a multi-value input ('one or more symbols'). However, path, context_lines, and the distinction between a module section id and a relative file path are left entirely to 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 uses a specific verb ('Fetch') with a precise resource ('exact L3 source lines for one or more symbols recorded in a repo.tier symbol table') and clarifies the scope constraint that symbols must already be in the tier symbol table. It does not explicitly distinguish itself from lookalike siblings such as tier_get or tier_context, so it stops 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 Guidelines3/5

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

Usage is implied by the resource: call this when you need verbatim source lines for indexed symbols. The only conditional guidance given is the stub/force behavior, and there is no statement of when to prefer tier_context, tier_get, or tier_find instead, nor any prerequisite about the repo needing to be indexed first.

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