Skip to main content
Glama

Detach Brand From Segment Tool

detach-brand-from-segment-tool
DestructiveIdempotent

Detach a brand from a segment. Idempotent: detaching a brand that is not attached succeeds without change. Both the brand and the segment must belong to the same project. Membership is what makes a brand a competitor, so detaching one from its only segment stops tracking it and it derives back to discovered, returning to the discover pool with its mention history intact. The own brand is implicit in every segment and cannot be detached.

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": {
      "brand_id": "<brand_id>",
      "segment_id": "<segment_id>"
    },
    "name": "detach-brand-from-segment-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
brand_idYesThe numeric id of the brand.
segment_idYesThe numeric id of the segment to detach.

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 past the annotations by explaining the downstream effect of detaching a brand's only segment: tracking stops, the brand derives back to `discovered`, returns to the discover pool, and keeps its mention history. The idempotent behavior is restated in concrete terms and the own-brand restriction is disclosed.

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?

Four tight sentences, purpose front-loaded, each carrying new information; only the idempotency sentence partially duplicates idempotentHint=true. No filler or hedging.

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-open-world mutation this covers the consequences, preconditions, and edge cases an agent needs to call it safely. The only omission is any statement about the response, which matters slightly more here because no output schema is declared.

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, but the description adds real constraints that scope their values: the pair must share a project, and a brand_id referring to the own brand is invalid. That is meaningful semantics beyond the schema's bare 'numeric id' text.

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 ('Detach a brand from a segment') in the first sentence, which cleanly marks it as the inverse of the sibling attach-brand-to-segment-tool without needing to name it.

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 preconditions (both brand and segment must belong to the same project) and an explicit exclusion (the own brand is implicit and cannot be detached), so an agent knows which calls will fail. It does not route to alternatives such as delete-segment-tool, so it is not a full when/when-not/alternatives statement.

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