Skip to main content
Glama

Repository path

repo_path
Read-onlyIdempotent

Resolve a repository by ID, name, path, or unique name prefix to its absolute path so you can operate in it directly, instead of searching the filesystem to find where it lives.

Instructions

Resolve a repo (by id, name, path or a unique prefix of its name) to its absolute path so you can operate in it directly. Prefer this over searching the filesystem for where a repo lives.

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": {
      "repo": "<repo>"
    },
    "name": "repo_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepo id, name/alias, path, or a unique prefix of a name (an exact match wins; a name several repos share is an error listing their paths).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.21
    • changedInput schema / properties / repo / description
      Previous value: -"Repo id, name/alias, or path."New value: +"Repo id, name/alias, path, or a unique prefix of a name (an exact match wins; a name several repos share is an error listing their paths)."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description only needs to add context — and it does, disclosing exact-match precedence and that an ambiguous name is an error listing the candidate paths. It does not cover anything like rate limits or failure modes beyond ambiguity, but for a pure resolution helper this is solid added behavior.

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?

Two sentences, zero filler, with the core action and the intended outcome front-loaded and the routing advice second. Every clause earns its place.

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

Completeness5/5

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

For a one-parameter, read-only resolver with no output schema, the description covers the action, the accepted inputs, the resolution outcome (an absolute path), and the primary alternative. Nothing an agent needs in order to call it correctly is missing.

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% and the single parameter's schema text already specifies id/name/path/prefix, exact-match precedence, and the ambiguity error. The description echoes those accepted forms but adds no format, syntax, or edge-case meaning beyond the schema, so the baseline of 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+resource (resolve a repo to its absolute path) and adds the downstream purpose ('so you can operate in it directly'), which is far more than a restatement of the name. It does not explicitly distinguish itself from the similar-sounding get_repo or list_repos siblings, leaving that differentiation to inference.

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 a clear usage rule with an alternative: 'Prefer this over searching the filesystem for where a repo lives.' That is a real when-to-use/alternative statement, though it does not address when to use this versus other repo-facing siblings such as get_repo.

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