Skip to main content
Glama

Update segment

update_segment
Destructive

Rename a segment or replace its rules.

Input Schema

NameRequiredDescriptionDefault
idYesSegment id
nameNo
matchNoall
rulesNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior3/5

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

The word 'replace' usefully signals that rules are overwritten wholesale rather than merged, which is consistent with the destructiveHint=true annotation and adds real context beyond it. But it never says the operation is destructive/irreversible, that the caller must hold the existing rule set to avoid losing it, or that the rules array is capped at 10 items — all material for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with zero filler, but for a 5-parameter destructive mutation this terseness crosses from concise into under-specified — nothing is wasted, but too little is said.

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

Completeness2/5

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

Destructive, non-idempotent, no output schema, and low schema coverage all shift burden onto the description, yet key parameters (match, description) and replacement semantics for partial updates go unmentioned. An agent could call this and silently drop the description or wipe rules unintentionally.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% and the description compensates for none of it: 'match' (all/any), 'description', and the maxLength/maxItems constraints are undocumented in both places. It also doesn't clarify whether passing 'rules' without 'name' leaves the name untouched, which is the single most important semantic for a partial-update tool.

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 ('Rename a segment or replace its rules'), which distinguishes it from create_segment/delete_segment/get_segment without naming them. However it omits the third documented capability, updating the free-text description, so the stated scope is narrower than the tool's actual behaviour.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use / when-not-to-use guidance and no mention of alternatives such as preview_segment (to validate rules before saving) or create_segment when a new segment is intended. The agent must infer usage entirely from the name.

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