Skip to main content
Glama

Check a segment

get_segment
Read-onlyIdempotent

A segment with how many messageable contacts match right now and the first five.

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": {
      "segment_id": "<segment_id>"
    },
    "name": "get_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
segment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered elsewhere. The description does add behavior beyond that: the count is evaluated live ('right now') and only the first five matches are returned, implying truncation. It does not say whether the five are contacts, their fields, or whether any filtering applies.

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?

Extremely short with no filler, which is good, but it reads as an incomplete fragment rather than a front-loaded statement, and the trailing 'and the first five' is ambiguous about what is being returned. Brevity here comes at the cost of clarity.

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?

With no output schema, the description is the only source of return-shape information, and it gives a partial picture (a count plus five items) without saying what those items are or whether the result is truncated/paginated. For a lookup tool this is under-specified, and the sole input parameter is undocumented.

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 0% for the single required parameter, so the description carries the full burden of explaining segment_id — yet it never mentions the parameter or what form a segment identifier takes. The one hint ('match right now') relates to evaluation semantics of the segment, not to the input.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description describes an outcome — a segment plus a messageable-contact count and the first five matches — rather than naming an action, and the phrasing is a sentence fragment ('A segment with...'). It does let an agent infer this is a read of a segment's reach, and no sibling in the catalog obviously overlaps, but the verb (retrieve/preview) is never stated.

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 guidance, no prerequisites, and no mention of alternatives such as broader segment-listing or sequence tools. The only usage signal is the annotations' read-only flag, not the description text.

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