Skip to main content
Glama

Repo Context Pack

repo_context_pack

Preferred task-oriented code lookup for unknown file locations. Defaults to paths_only; use compact for short snippets and snippets for ranking/debug detail. Set mode=keyword for local lookup without embedding requests.

Instructions

Preferred task-oriented code lookup for unknown file locations. Defaults to paths_only; use compact for short snippets and snippets for ranking/debug detail. Set mode=keyword for local lookup without embedding requests.

Input Schema

NameRequiredDescriptionDefault
modeNohybrid
queryYes
max_resultsNo
project_pathNo
related_depthNo
response_modeNopaths_only
max_seed_filesNo
max_context_charsNo
max_related_filesNo
max_related_itemsNo
max_snippet_charsNo
include_related_snippetsNo
max_related_context_charsNo
max_related_snippet_charsNo
max_related_snippets_per_fileNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.16
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "hybrid",
      -  "semantic"
      -]New value: +[
      +  "keyword",
      +  "hybrid",
      +  "semantic"
      +]
    • changedInput schema / properties / response_mode / default
      Previous value: -"compact"New value: +"paths_only"
  2. First observedv0.1.14

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 burden. It does disclose useful behavior: the default response_mode is paths_only, and mode=keyword avoids embedding requests (an implicit no-network path). However it says nothing about permissions, side effects, latency, or what the payload actually contains beyond the three response modes.

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?

Three tight sentences with the primary routing statement front-loaded and no filler. Slightly dense in the middle sentence but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with no annotations and no output schema, the description is thin: it omits what a 'context pack' returns, how related-file expansion works, and the meaning of nearly all tuning parameters. An agent could call it with just query, but would be guessing on every other field.

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 15 parameters, yet the description explains only response_mode and the keyword value of mode. The thirteen sizing/related-context parameters (max_results, related_depth, include_related_snippets, etc.) get no semantic explanation, so the compensation is far from complete.

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+resource ('task-oriented code lookup') and a scoping condition ('for unknown file locations'), which tells an agent this is a discovery tool rather than an index or diagnostic one. It doesn't explicitly name the sibling it competes with (repo_semantic_search), so differentiation is inferred from the mode/embedding hint rather than stated.

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?

Gives clear context ('Preferred ... for unknown file locations') and a conditional routing rule: use mode=keyword when you want local lookup without embedding requests. No explicit when-not or named alternative, so it stops short of full 5-level guidance.

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