Skip to main content
Glama

MyDataHub

Save an audience

save_audience
Idempotent

Saves an audience definition under a name, shared across the organisation, or updates a saved one when audience_id is given. Use it when the user wants to keep, share or recount a list later; saving is free and needs audiences:write. Repeating the same call returns the same saved audience. Call list_audiences to find it again, or count_audience with its aud_ id. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.

Input Schema

NameRequiredDescriptionDefault
nameNo
briefNo
audienceNo
audience_idNoA saved audience to update. Leave it out to save a new one.

Output Schema

NameRequiredDescriptionDefault
idYesFormat: an audience id: aud_ followed by a 26 character ULID in upper case Crockford base32, such as aud_01JB4H2K9V6XN3M9R6T1Y5W8ZA.
urlYesThe audience in the app, mydatahub.emailmovers.com/audiences/{id}.
nameYes
briefYesThe brief it was compiled from, if any.
audienceYes
created_atYes
created_byYesFormat: a user id: usr_ followed by a 26 character ULID in upper case Crockford base32, such as usr_01JA0Q3V7XN3M9R6T1Y5W8ZAK8.
updated_atYes
current_countYes
last_refreshed_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) it adds real operational context: the save is free, requires the audiences:write scope, is shared across the organisation, and repeating the call returns the same audience. It further discloses a non-obvious domain default — email audiences include corporate subscribers only under PECR — which the agent could not infer from any structured field.

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?

It is front-loaded with the action and mode split, then usage, then behavior, then compliance caveats — a sensible order with no filler. The PECR/sole-trader sentence is long and slightly tangential to the act of saving, but it carries genuine decision value, so it earns most of its length.

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 save operation with a large nested audience schema and an output schema, the description covers the essentials: modes, auth scope, cost, idempotency, sharing semantics, and where to go next. Only minor gaps remain, such as what happens on a name collision or the significance of brief, which are not covered anywhere else.

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 only 25% at the top level, and the description compensates only partially: it explains audience_id's create-vs-update role and that name labels the saved audience, and mentions that the server fills defaults and returns the effective definition. The brief parameter and the required/optional combinations are left to the schema, and the deep Audience/where-tree semantics are documented entirely in $defs rather than the description.

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 a specific verb and resource and separates the two modes explicitly: create ('saves an audience definition under a name') versus update ('updates a saved one when audience_id is given'). An agent can immediately distinguish this from count_audience and list_audiences because the description names those as follow-on lookups rather than saving operations.

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 concrete trigger ('when the user wants to keep, share or recount a list later') and routes the agent onward to list_audiences to retrieve and count_audience to count. What is missing is an explicit when-not or a note on what to do when saving is unnecessary (e.g. one-off counts), but the positive guidance 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