Skip to main content
Glama

remove_library

Deletes an indexed library and its source files from disk, cleaning up stale third-party indexes so codebase searches and dependency navigation stay accurate.

Instructions

Removes an indexed library and its source files from disk.

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

Input Schema

NameRequiredDescriptionDefault
nameYesLibrary name (e.g., django@4.2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the important trait that source files are deleted from disk, which goes beyond the bare word 'Removes', but it says nothing about permissions, irreversibility, confirmation, or behavior when the library is absent.

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?

One front-loaded sentence with no filler; the destructive scope is stated immediately. Slightly more structure around the deletion consequence would earn a 5.

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 destructive tool with no annotations and no output schema, the definition should say more about what is lost and whether the action is reversible. The disk-deletion detail is helpful but leaves meaningful gaps for an irreversible operation.

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 100% for the single 'name' parameter, so the schema already documents the expected format. The description confirms the argument identifies an indexed library but adds no syntax or validation detail beyond that, making the baseline 3 appropriate.

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?

Names a specific verb ('Removes') and resource ('indexed library') and adds the scope that source files on disk are also removed. That distinguishes it from pure index-entry cleanup such as delete_repo_index, though it does not explicitly name a sibling.

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?

Usage is only implied: an agent can infer this is the tool for tearing down an indexed library, but there is no stated when-to-use, when-not-to-use, or pointer to related operations like indexed_libraries or index_library_source.

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