Skip to main content
Glama

Delete Segment Tool

delete-segment-tool
DestructiveIdempotent

Delete a segment. Attached brands are untouched but the segment stops appearing on them; a brand whose only segment this was derives back to discovered. The segment is soft-deleted, retained for 30 days, and then permanently removed. A project must keep at least one segment, so deleting the last one returns an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
segment_idYesThe numeric id of the segment to delete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint, idempotentHint), disclosing the soft-delete with 30-day retention before permanent removal, the side effect on attached brands at both the brand level and the project level, and the last-segment error. This is exactly the cascading-consequence context an agent needs before a destructive 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?

Front-loads the action, then layers consequences, retention policy, and the failure condition in four dense sentences with no filler. Every sentence carries information the agent cannot get from the schema or annotations.

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 no output schema, the description covers action, side effects, reversibility window, and error behavior. Nothing needed 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?

Schema coverage is 100% and segment_id is already documented as "The numeric id of the segment to delete." The description adds no further meaning about the parameter, so the 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+resource ("Delete a segment") that is immediately distinguishable from siblings like update-segment-tool, delete-project-tool, and detach-brand-from-segment-tool. An agent knows exactly what this tool operates on 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?

Provides a clear when-not condition ("A project must keep at least one segment, so deleting the last one returns an error"), which tells the agent when the call will fail. It does not name an alternative tool for the cases where deletion is inappropriate, keeping it 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.

Resources