Skip to main content
Glama

Filter audience

filter_audience
Read-only

Given participant ids (or all), return only those who have opted in to marketing on the channel. Always run this before a send.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "filter_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelNo
participant_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile needs no restating. The description adds one genuinely non-obvious behavior: omitting participant ids means all participants are considered. It does not say what happens when nobody qualifies (empty list vs. error) or anything about result size or ordering.

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?

Two sentences, both load-bearing, with the core filtering behavior front-loaded and the imperative constraint placed last for emphasis. Nothing is redundant with the title or annotations.

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

Completeness4/5

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

For a two-parameter read-only filter with no output schema and full annotation coverage, the definition says enough to invoke it correctly: what it filters on, that the id list is optional, and when it must run. The remaining gap is the exact shape of the return value (ids only, or participant objects), which the agent must discover empirically.

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 0%, so the description must carry parameter meaning. It does explain that participant_ids is optional ('or all') and that channel is what opt-in is evaluated against, which compensates in part. It gives no format guidance for the id array, no example values, and no indication of whether the channel enum values are the only accepted spelling beyond what the schema already shows.

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 uses a specific verb and resource: it takes participant ids (or all) and returns only those who opted in to marketing on the given channel. That is far clearer than the title 'Filter audience' alone. It stops short of naming a contrasting sibling (for example, an unfiltered lookup), so an agent cannot distinguish it from a hypothetical raw participant fetch by name.

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?

"Always run this before a send" gives an explicit prerequisite and ordering constraint, which is the key usage signal for this tool. It offers no when-not guidance or named alternative, so it falls short of a full 5, but the mandatory pre-send framing is unambiguous.

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