Skip to main content
Glama

add_repo_to_workspace

Adds an indexed repository to a workspace and automatically resolves cross-repo imports, so you can navigate and analyze multi-repo code together.

Instructions

Adds an indexed repo to a workspace. Resolves cross-repo imports automatically.

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>",
      "workspace": "<workspace>"
    },
    "name": "add_repo_to_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)
workspaceYesWorkspace name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.5/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 burden. It does disclose one real behavioral trait — that cross-repo imports are resolved automatically — but says nothing about idempotency (what happens if the repo is already in the workspace), permission requirements, whether the workspace must already exist, or whether the operation is reversible.

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 short sentences, the action front-loaded and the notable side effect second. There is no filler or redundancy.

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?

For a small two-parameter mutation tool with no annotations and no output schema, the definition covers what the tool does but not what the agent should expect afterward (e.g. confirmation, effect on import graph, behavior on duplicates). It is minimally adequate rather than complete.

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 both parameters are already documented, including the helpful pointer to list_repos for the repo name. The description adds no format, casing, or naming details beyond the schema, so 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 and resource ("Adds an indexed repo to a workspace") and adds the distinguishing detail that it wires up cross-repo imports. It does not explicitly contrast with siblings like index_multi_repo or index_project, so an agent must infer the boundary, but the core action is unambiguous.

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 phrase "indexed repo" implies a prerequisite (the repo must already be indexed, and the schema points to list_repos for valid names), which is useful implied guidance. However there is no explicit when-to-use versus when-not, and no named alternative for cases like adding multiple repos at once or re-indexing.

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