Skip to main content
Glama

get_audiences

Read-onlyIdempotent

List the user's saved Audiences so a spoken Audience name can be resolved to an audience_id. Read-only; never bills or purchases data. Optional: type (dynamic, static, or import; omit for all), monitored (true or false; omit for both), limit (default 100, maximum 1000), sort (count = largest first, the default; name = alphabetical). There is NO name search: match the user's words against the returned names yourself. Results are a window capped by limit, and the total number of Audiences is not reported, so a name that is not found may be outside the window or not visible here (Audiences inside Play-generated groups are excluded) — say the list may be truncated instead of claiming the Audience does not exist. If two or more names plausibly match, show both with their counts and ask the user which one before using any audience_id. If none match, say so and offer create_dynamic_audience; do not create a near-match silently. Each row returns audience_id, name, type, total_count, monitored, new_since_last_viewed, and last_viewed. total_count is live for monitored and static Audiences but only as of the user's last view for an unmonitored dynamic Audience, so do not quote it as current. new_since_last_viewed counts properties added since the user last opened the Audience in the app, is always 0 on an unmonitored Audience (nothing tracks it), and reading through this tool does not reset it. last_viewed is the user's local time as YYYY-MM-DDTHH:MM with no UTC offset, or null if never viewed; report the date, do not compute a precise interval. Never returns criteria, properties, or owners. An account with no Audiences returns an empty results array, which is a success. Returns results[], returned_count, and related_tools[].

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

Input Schema

NameRequiredDescriptionDefault
sortNocount
typeNo
limitNo
monitoredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the supplied annotations (readOnly, idempotent, non-destructive, closed-world) by disclosing that the tool never bills or purchases data, that results are a limit-capped window with no reported total, and that Audiences inside Play-generated groups are excluded. It further documents field-level behavior — total_count staleness for unmonitored dynamic Audiences, new_since_last_viewed always 0 and not reset by reading, last_viewed format with no UTC offset — and clarifies that an empty results array is a success, not an error.

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?

Purpose and the no-name-search caveat are front-loaded, and nearly every sentence carries operational information rather than filler. The main cost is density: it arrives as one long block mixing parameters, matching policy, field caveats, and return shape, which makes selective scanning harder than a lightly segmented version would be.

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 four-parameter read tool with no output schema, the description covers everything an agent needs: filtering semantics, matching and disambiguation policy, truncation risk, per-field interpretation caveats, and the top-level response shape (results[], returned_count, related_tools[]). It also states what is never returned (criteria, properties, owners), closing the most likely false expectation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it does: it explains the allowed values for type and the omit-for-all behavior, monitored with omit-for-both, limit's default of 100 and maximum of 1000, and sort's two modes with count as the largest-first default. This meaningfully exceeds what the bare enum and default fields convey.

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 and resource ('List the user's saved Audiences') plus the downstream intent ('so a spoken Audience name can be resolved to an audience_id'), which tells an agent exactly what this tool is for. It also implicitly separates itself from the write-side sibling by noting that name-misses should route to create_dynamic_audience rather than being created here.

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?

Gives explicit when-to-use rules and branch handling: match spoken names against returned names yourself, disambiguate between multiple plausible matches by showing counts and asking, and on zero matches say so and offer create_dynamic_audience instead of silently creating a near-match. It also warns not to claim an Audience does not exist when the window may be truncated, which is a genuine usage constraint rather than restated capability.

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