Skip to main content
Glama

delete-segment

Destructive

Delete a segment. Only the saved filter set goes — the products, listings or orders it selected are untouched, because a segment is a view rather than a container. Authenticated via bearer token.

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": {
      "id": "<id>"
    },
    "name": "delete-segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSegment id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds genuinely useful scope detail by explaining that the destruction is limited to the filter definition and that a segment is a view, not a container. It also discloses the bearer-token auth requirement. It stops short of saying whether deletion is reversible or what a successful response looks like.

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, front-loaded with the action and immediately followed by the non-obvious scoping fact that prevents agent misuse. No 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 single-parameter destructive tool with full schema coverage and destructive/openWorld annotations, the description covers the only genuinely ambiguous point (what survives deletion) plus auth. Nothing an agent needs to call it correctly is missing.

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?

Only one parameter (id) with 100% schema description coverage ('Segment id'), so the schema fully carries parameter semantics and the description adds nothing further about it. Baseline 3 applies.

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?

States a specific verb and resource (delete a segment) and immediately scopes what the operation affects: only the saved filter set, not the selected products/listings/orders. This distinguishes it cleanly from sibling deletions like delete-product or delete-store-category, which do remove entities.

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 makes clear this is the right tool when you want to remove a saved view without touching underlying data, which implicitly routes against delete-product/remove-products-from-catalog. It does not name alternatives explicitly or state prerequisites (e.g. what happens if the segment is referenced elsewhere), so it falls short of a 5.

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.