Skip to main content
Glama

Perpetuus CRM

Preview Segment

crm_preview_segment
Read-onlyIdempotent

Preview a segment filter without creating a campaign. Keep limits small for performance.

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": {
      "filters": "<filters>"
    },
    "name": "crm_preview_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
filtersYesSegmentFilters-compatible object.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / filters / additionalProperties / type
      Added value: +[
      +  "object",
      +  "array",
      +  "string",
      +  "number",
      +  "boolean",
      +  "null"
      +]
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered and the description need not repeat it. What it does add is the performance guidance to keep limits small, but it never says what the preview actually produces (a count, a sample of contacts, an error on invalid filters) — a real gap for a preview tool with no output schema.

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 short sentences, front-loaded with the purpose before the operational hint, with no filler. The brevity is a virtue stylistically, though the second sentence is slightly vague about what 'small' means in practice.

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?

For a tool whose entire input is a free-form nested filter object and which returns no output schema, the definition is too thin: it neither explains how to construct filters nor points to crm_get_segment_filter_options or crm_evaluate_field_conditions as aids, and it never describes the shape of the preview result. An agent would have to guess on both the input and the return.

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 coverage is only 50%, and the shortfall lands on the most important parameter: 'filters' is a required, open-ended nested object documented only as 'SegmentFilters-compatible' with arbitrary additionalProperties, and the description adds nothing about its shape, required operators, or expected keys. The only parameter guidance is the practical 'keep limits small' hint, which the schema's default of 25 and maximum of 100 already largely convey.

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 pairs a specific verb and resource ('Preview a segment filter') and distinguishes its intent from campaign creation, so an agent knows this is a non-committal evaluation. It does not distinguish itself from lookalike siblings such as crm_get_segment or crm_resolve_segment, which weakens the differentiation a bit.

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?

'without creating a campaign' implies the when-to-use scenario (sizing a filter before committing), but there is no explicit statement of when not to use it and no named alternative for cases where the agent needs the filter definition itself or a full resolution. Usage is inferable rather than stated.

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.