Skip to main content
Glama

segments_compliance_summary

The compliance answer for a whole segment (lead list): allowed of total contacts can be emailed; set_aside are held back by a rule now (opt-outs, bounces, countries that need consent, personal mailboxes, …); would_set_aside more will be held back once rules still in warn mode are switched on. top lists the biggest set-aside groups as {label, count}.

The same gates as campaigns_preflight, over every non-archived lead in the segment (not only NEW ones). headline.summary is a one-line sentence to quote to the user; groups and reasons (with why/fix) are the details. Lists over 20,000 leads are sampled and scaled (sample). Cached for 5 minutes, and refreshed when leads are added, removed or edited; pass refresh=true after uploading consent or suppression records.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/compliance-summary/

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": {
      "sqid": "<sqid>"
    },
    "name": "segments_compliance_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
refreshNoRecompute instead of using the 5-minute cache.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so: it discloses a 5-minute cache, the events that invalidate it (leads added/removed/edited), sampling-and-scaling behavior above 20,000 leads, and the warn-mode caveat that `would_set_aside` is not yet enforced. It also explains each returned field and where the human-quotable sentence and `why`/`fix` details live, which is unusually rich for an unannotated tool.

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?

The headline answer is front-loaded and every sentence adds information (field meanings, sibling contrast, limits, cache behavior). The backtick-heavy phrasing and the trailing raw method/endpoint line are slightly noisy but still earn their place as disambiguation for the agent.

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?

There is no output schema, so the description must define the return shape itself, and it does — `allowed`/`total`, `set_aside`, `would_set_aside`, `top`, `headline.summary`, `groups`, `reasons` with `why`/`fix`, and `sample`. Combined with the caching and scaling caveats, an agent has everything needed to call it and interpret the result correctly.

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 50% (only `refresh` is documented inline), but the description compensates by explaining that `refresh=true` forces recomputation past the 5-minute cache specifically after uploading consent or suppression records. The required `sqid` is never described beyond the endpoint path, leaving its format/scope to be inferred.

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?

The first sentence names the exact resource (a whole segment / lead list) and the exact payload semantics: `allowed` of `total`, plus `set_aside`, `would_set_aside`, and `top` groups. It explicitly contrasts itself with the sibling `campaigns_preflight`, noting the same gates run over every non-archived lead rather than only NEW ones, so an agent can choose between the two without opening a schema.

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

Usage Guidelines4/5

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

It gives a clear use condition relative to `campaigns_preflight` (whole-segment vs. NEW-only) and a concrete trigger for `refresh=true` after uploading consent or suppression records. It never states when NOT to use this tool or what to do if the segment is empty/archived, so it stops short of explicit exclusion 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.