Skip to main content
Glama

get_context

Retrieve progressive, evidence-backed context for any file, class, module, or route. Adjust depth, purpose, and token budget to match understanding, implementation, debugging, review, or planning needs.

Instructions

Delivers progressive context about any part of the project — files, classes, modules, routes. Supports depth levels (summary/structure/detail/full), purpose modes (understand/implement/debug/review/plan), and token budgets.

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": {
      "target": "<target>"
    },
    "name": "get_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoLevel of detail. Default: structure
targetYesPath, entity name, or query (e.g., "src/controllers/", "UserService", "POST /api/users")
includeNoAdditional content sections to include
purposeNoAdjusts which content types are prioritized. Default: understand
session_idNoFor delta responses across repeated queries
token_budgetNoMaximum tokens in response. Default: 2000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses token budgeting and that session_id enables delta responses across repeated queries, but leaves undescribed behavior such as whether the call is read-only, how invalid or ambiguous targets are handled, and any cost or latency characteristics of a 'progressive' retrieval.

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

Conciseness4/5

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

One dense sentence that front-loads the core capability and then lists the three modulating dimensions. No filler; slightly promotional phrasing ('any part of the project') but nothing that should be cut.

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?

The tool has six parameters, no annotations, and no output schema, so the description ideally would explain the shape of the returned context and the meaning of the include sections (knowledge, evidence, edges, conventions, gaps), which are domain-specific and unexplained. For a moderately complex retrieval tool the description is adequate but leaves real gaps.

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 100%, so the schema already documents every parameter including defaults and enums. The description restates depth levels, purpose modes, and token budgets without adding format or semantic detail beyond the schema, so the baseline 3 applies.

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 ('Delivers') and resource ('progressive context') and enumerates the target types it covers (files, classes, modules, routes), which helps an agent map its query to this tool. It does not differentiate itself from siblings like search, graph, or impact, so the boundary is left implicit.

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 purpose modes (understand/implement/debug/review/plan) hint at the situations the tool serves, but that is parameter framing rather than selection guidance. There is no explicit when-to-use, when-not-to-use, or named alternative among the sibling tools.

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