Skip to main content
Glama

Remove a project's reference file

remove_project_source
Destructive

Removes one of a project's reference files, by the sourceId list_project_sources gives: it is no longer one of the project's files and can no longer be downloaded, and every knowledge entry made from its words is deleted, so later changes stop using them. Its earlier versions stay as the record. Only an owner or admin of the workspace may remove a file (the answer is forbidden otherwise). Give expectedVersion, the newest version you saw, to refuse if someone added a newer one since (the answer is stale: look again first). An incomplete answer means some of its words are still in the project's knowledge: remove it again to finish.

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": {
      "project_id": "<project_id>",
      "source_id": "<source_id>"
    },
    "name": "remove_project_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_idYesThe file's sourceId from list_project_sources (psrc_...).
project_idYesThe project's id (prj_...) from list_projects.
workspace_idNoWorkspace id from whoami; omit when there is one.
expected_versionNoThe newest version you saw (currentVersion from list_project_sources); the removal is refused if a newer one arrived since.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description spells out exactly what is destroyed (every knowledge entry derived from the file's words), what survives (earlier versions remain as the record), what is no longer possible (the file cannot be downloaded), and the authorization failure mode ("forbidden"). It also documents the optimistic-concurrency refusal ("stale: look again first") and the partial-completion retry semantics, which annotations alone could never convey.

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?

The verb and resource are front-loaded in the first clause and each subsequent sentence covers a distinct concern (cascade effects, version retention, permissions, concurrency, retry). The prose is dense and somewhat run-on with parenthetical asides, which costs a point, but no sentence is filler.

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 destructive tool with no output schema, the description covers the full lifecycle an agent needs: preconditions, cascading effects, retained data, all three outcome classes (forbidden, stale, incomplete), and the retry path. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: expected_version is framed as a refusal guard against newer arrivals, and the incomplete-answer behavior implies a re-call with the same parameters. It does not explain the workspace_id omission rule here, leaving that to the schema.

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

Purpose5/5

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

The opening clause pairs a specific verb ("Removes") with a precise resource ("one of a project's reference files") and pins the identifier to a sibling tool ("by the sourceId list_project_sources gives"). This clearly distinguishes it from add_project_source, download_project_source and the remove_* family, so an agent can select it without opening the schema.

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?

The description gives actionable preconditions: an owner or admin must call it, expectedVersion should be the newest version seen, and an incomplete answer means the caller must invoke it again. It does not name alternative tools or say when not to remove a file, but the context it supplies is concrete and operational.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources