Skip to main content
Glama

Get a segment

flow_get_segment
Read-only

One segment by id, with its filter tree, member count as flow_list_segments gives it and its link in the portal. Country conditions carry {id, name, cca2}.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real value by disclosing the return shape (filter tree, member count, portal link) and a detail about country conditions carrying {id, name, cca2}. It stops short of error behavior for a missing id, which keeps it from a 5.

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?

Two tight sentences with the primary output front-loaded; nothing is filler. The clause "as flow_list_segments gives it" is slightly convoluted but carries real meaning about count consistency.

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?

With no output schema, the description must convey return values and does cover the main pieces: filter tree, member count, portal link, and country condition structure. It is not exhaustive about all segment fields, but it is sufficient for an agent to decide to call and interpret the result.

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?

With one parameter at 0% schema description coverage, the description is the only place the id is explained, and it does say the id identifies a segment ("One segment by id"). That is minimal semantic value — no format, source, or how to obtain the id — so it only partially compensates for the coverage gap.

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?

The description states a specific verb and resource ("One segment by id") and enumerates the payload it returns: filter tree, member count, portal link. It implicitly contrasts with flow_list_segments by noting the member count matches what that tool gives, though it never names it as the enumeration alternative.

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 rather than stated: the agent infers this is the single-record lookup to use when it has a segment id, versus the list tool. There is no explicit when-not guidance, no note about what happens with an invalid or deleted id, and no prerequisite info.

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