Skip to main content
Glama

Remove Repo

remove_repo

Delete an indexed repository by repo ID or filesystem path and remove all its stored vectors, preventing stale code search results.

Instructions

Remove an indexed repository (by repo_id or filesystem path) and delete all of its vectors.

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": "remove_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose the key behavioral consequence — that all vectors for the repo are deleted — which is real value. It omits permissions/authorization needs, irreversibility or confirmation requirements, and behavior when the repo is not found or not indexed.

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?

A single sentence that front-loads the action and resource, then adds the consequential detail. No filler, no restatement of the title.

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?

An output schema exists, so return values need not be explained. However, for a destructive one-parameter tool with no annotations and an undocumented parameter schema, the description should also cover permission requirements and failure behavior for a missing or unindexed repo.

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 coverage is 0% for the single `repo` parameter, which the schema types only as a bare string. The description partially compensates by saying it accepts a repo_id or a filesystem path, but it does not explain how the two forms are distinguished or what a valid path looks like.

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 (remove) and resource (an indexed repository) and adds scope detail: it also deletes all vectors. This distinguishes it from a read-only tool like get_repo_overview and implies the repo/project split with remove_project, though it does not name that sibling.

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?

The description never says when to use this tool rather than remove_project, nor what preconditions must hold (e.g., whether the repo must be currently indexed). The use case is only inferable from the name and the single sentence, so there is no explicit when-to-use or exclusion guidance.

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