Skip to main content
Glama

repo_scope_find

Identify the minimum relevant repository files and directories for a task by using task type, keywords, and repository path to narrow scope before deeper code analysis.

Instructions

Identify minimum relevant repository scope for a task

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": {
      "task": "<task>",
      "taskType": "<taskType>"
    },
    "name": "repo_scope_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesThe task description
limitNoMaximum results to return
keywordsNoAdditional keywords
repoPathNoRepository path to index
taskTypeYesType of task

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries full behavioral burden, yet it says nothing about whether the tool is read-only, whether passing repoPath triggers an indexing side effect (the schema hints "Repository path to index"), or how expensive a call is. The only behavioral signal comes indirectly from a parameter description, not the tool description itself.

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 front-loaded sentence with no padding, which is good, but it is under-specified rather than concise — the brevity comes at the cost of required information rather than from trimming redundancy.

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?

A five-parameter tool with no annotations and no output schema needs the description to explain the result shape (what a "scope" looks like) and any side effects of indexing. Neither is covered, so the definition is insufficient for confident invocation given the tool's complexity.

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 all five parameters (task, taskType, keywords, limit, repoPath) are already documented in the schema, including the taskType enum. The description adds no extra meaning, such as how keywords interact with task text or what limit defaults apply; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb ("Identify") and an object ("minimum relevant repository scope"), but "scope" is left abstract — it never says whether the output is files, directories, or modules. It also does nothing to distinguish the tool from siblings like impact_analyze or task_classify, so an agent must guess when this framing applies.

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, no mention of a prerequisite (e.g., that repoPath may need prior indexing), and no stated alternative for broader or narrower scope discovery. The agent is left to infer usage entirely from the name and schema.

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