Skip to main content
Glama

Perpetuus CRM

Get Segment

crm_get_segment
Read-onlyIdempotent

Fetch one segment by documentId (filters, composition, stored contactCount). contactCount and lastResolvedAt are the last background resolution: every 15 minutes when an active published automation watches this segment, otherwise about every 6 hours. Use crm_resolve_segment for the live audience (its total is the count).

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

Input Schema

NameRequiredDescriptionDefault
idYesSegment documentId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered structurally. The description adds genuinely non-obvious behavior: contactCount and lastResolvedAt come from a background resolution that runs every 15 minutes when an active published automation watches the segment, otherwise roughly every 6 hours. That freshness caveat is the most valuable line here, though return shape/pagination are not addressed.

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?

Three tight sentences: what it returns first, the staleness caveat second, the routing to the sibling last. No filler, and the most decision-relevant content (stored vs live) is not buried.

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

Completeness5/5

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

For a one-parameter read with no output schema, the description covers what is returned, what the timestamp fields mean, and how stale they can be — everything an agent needs to avoid misreporting a contact count. Nothing material is missing.

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?

Schema description coverage is 100% and the single parameter is already documented as "Segment documentId" with a pattern and length bounds. The description repeats the term documentId without adding format, sourcing, or lookup guidance beyond that, so the baseline 3 applies.

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?

"Fetch one segment by documentId" gives a specific verb and resource, and the parenthetical enumerates what the payload carries (filters, composition, stored contactCount). The second half explicitly distinguishes this tool's stored data from crm_resolve_segment's live data, so an agent can pick correctly without opening either schema.

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

Usage Guidelines5/5

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

It names the alternative (crm_resolve_segment) and states the condition that selects it: use that tool when you need the live audience and its count. That implicitly tells the agent this tool returns a lagging snapshot suitable for inspecting configuration, not for counting contacts.

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.