Skip to main content
Glama

Get segment unclassified count

get_segment_unclassified_count
Read-only

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": {
      "group_id": "<group_id>"
    },
    "name": "get_segment_unclassified_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYesThe segment group to count for (from list_segment_groups).
on_behalf_ofNoA teammate's email, or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / on_behalf_of / description
      Previous value: -"An agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."New value: +"A teammate's email, or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."
  2. Changed1 schema field changed
    • addedInput schema / properties / on_behalf_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "An agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."
      +}
  3. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=true, so the description carries the semantic load, and it does: it defines classify scope, explains what the count excludes ('No match' people already counted in `classified_people`), and rules out double-counting with list_segment_groups. It adds no notes on cost, credit usage, or edge cases like an empty scope, keeping it short of 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?

The scope-defining sentence is front-loaded and the pairing with `classified_people` and the 'No match' distinction each add real disambiguation value. The XML-style <summary>/<returns> wrapper tags are structural overhead that slightly dilutes an otherwise tight description.

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, but the description compensates by spelling out the return shape ({group_id, unclassified_people}). Combined with the scope definition, exclusions, and the acting-account parameter documented in the schema, an agent has everything needed to call this correctly.

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 both parameters (group_id, on_behalf_of) are documented in the schema, including the on_behalf_of acting-as semantics. The description only indirectly enriches `group_id` by explaining the group's classify scope; it adds nothing about on_behalf_of or the integer source, 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?

States a specific verb+resource: counting people in a group's classify scope with no classification row yet. It goes further to define what 'classify scope' means (tracked campaigns and teammates, `criteria`) and explicitly separates this population from 'No match' people, so an agent can distinguish it from get_segment_rates or query_segment_people 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?

Gives concrete usage context — it is the population a classify_segment_group run with force off would process — which implies the natural workflow of previewing scope before classifying, and points to list_segment_groups as the source of `classified_people` to pair with. It stops short of explicit when-not-to-use guidance or naming an alternative count tool such as get_message_tag_unclassified_count.

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