Skip to main content
Glama

Update segment

update_segment

Rename a segment or change its filter (null clears the filter, making it manual).

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

Input Schema

NameRequiredDescriptionDefault
idYesSegment id from list_segments
nameNo
filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only establish that this is a non-read-only, non-destructive, closed-world mutation. The description adds real behavioral value: passing null to filter clears it and converts the segment to manual, which is a meaningful side effect an agent could not infer from the annotations.

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?

One tight sentence with the primary action front-loaded and the important null caveat in parentheses. Every clause earns its place; nothing is padding.

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

Completeness3/5

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

For a 3-parameter mutation tool with no output schema and low schema coverage, the description covers the core actions but never clarifies partial-update semantics (does omitting name or filter leave them unchanged?) or the filter object structure. Adequate but with clear gaps.

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 only 33% (only 'id' is described), so the description carries extra weight — and it does: it maps 'rename' to name and 'change its filter' to filter, and explains the null semantics the schema's anyOf does not. It still omits how the nested filter object (match/conditions/op/field/value) is shaped, so it is not fully compensating.

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 specific verbs and resource ('Rename a segment or change its filter'), which is far more precise than the tautological title 'Update segment'. It implicitly separates the tool from create_segment/delete_segment, but never names or contrasts them explicitly, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

Usage is implied (update an existing segment's name or filter) but there is no explicit when-to-use, when-not-to-use, or direction to a sibling like create_segment or delete_segment. The null-clears-filter note is behavioral rather than routing guidance.

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.