Skip to main content
Glama
llmstxt-doc-search

llmstxt-doc-search

by praveenc

Remove doc source

remove_doc_source
DestructiveIdempotent

Removes a registered documentation source from search. Prompts for confirmation when supported; otherwise requires explicit user approval before removal.

Instructions

Remove a registered source. A client that can show a prompt asks the user to confirm. Otherwise pass confirm:true, but only after the user agreed.

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_doc_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSource name to remove
confirmNoSet true to confirm removal when the client cannot show a confirmation prompt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Set true to confirm removal when the client cannot show a confirmation prompt.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changedv1.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuinely new behavioral context that annotations cannot express: the human confirmation handshake and the ordering constraint that confirm:true must come only after user agreement, which directly affects how an agent sequences the call.

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?

Three short sentences, no filler, with the core action front-loaded and the confirmation rule following. Every sentence carries operational information an agent needs.

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 two-parameter destructive tool with no output schema, the description covers the action, the confirmation protocol, and the ordering constraint on confirm. Nothing an agent needs in order to invoke it safely is missing.

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 both parameters are already documented, making 3 the baseline. The description goes beyond the schema by explaining the conditional relationship between client capability and the confirm flag, clarifying when confirm should be omitted versus set, which the flat schema cannot convey.

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?

"Remove a registered source" gives a specific verb and resource, and the name plus sibling set (add_doc_source, refresh_doc_source) makes the operation unambiguous. It stops short of an explicit contrast with siblings such as refresh_doc_source, which would have earned a 5.

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?

It states the decision rule for the confirmation path: prompt the user if the client can show a prompt, otherwise pass confirm:true only after the user agreed. That is clear contextual guidance, though it does not discuss preconditions such as verifying the source exists or what to do if removal fails.

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