Skip to main content
Glama

Delete custom tool

delete_custom_tool
Destructive

Delete a custom tool by name. Agents that list it lose it. Cannot be undone: the first call previews what goes (or says what still uses it) and gives a confirm_token; call again with the same arguments and that token to delete.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
confirm_tokenNoLeave out at first: the answer previews what this would do and gives a token. Call again with the same arguments and that token to do it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing irreversibility ('Cannot be undone'), the collateral effect on agents that list the tool, and the full two-phase preview/confirm-token protocol that a caller must follow. Annotations only say destructiveHint=true and idempotentHint=false; the description supplies the mechanics that make those flags actionable.

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 sentences, front-loaded with the action, then the irreversible side effect, then the confirm mechanism. Every clause carries information an agent needs, and there is no redundant restatement of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent operation with no output schema, the description covers the safety-critical parts: irreversibility, side effects, and the confirmation flow. Gaps remain around what an invalid or non-existent name returns and whether special permissions are required.

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 50% and only confirm_token has a schema description, so the description carries useful weight: it explains that confirm_token must be omitted on the first call and passed unchanged on the second. The name parameter is only implicitly explained as the identifier 'by name', with no format or lookup-failure behavior given.

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 ('Delete a custom tool') plus the identifying key ('by name'), and adds the consequence 'Agents that list it lose it.' It stops short of naming which sibling to use instead (e.g., list_custom_tools to inspect first), so it is clear but not sibling-differentiated.

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?

Gives concrete operational guidance for the tool itself: the first call only previews (or reports what still references the tool), and a second call with identical arguments plus the returned confirm_token performs the deletion. It does not address the surrounding decision of when to delete versus update or simply leave a tool unused.

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.