Skip to main content
Glama

MyDataHub

Compile a brief

compile_audience
Read-onlyIdempotent

Compiles a plain English brief, such as 300 finance directors at law firms in Manchester, into an audience definition with a one-sentence readback, editable chips and any questions to answer first. Use it first for a request in words, read the readback to the user and settle the questions before counting. Words that match no filter come back in unrecognised, never guessed. Free and needs no account; pass the audience to count_audience next. 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
briefYesA plain English brief, such as "300 finance directors at law firms in Manchester".
datasetNoThe dataset an audience draws from. uk_contacts is live; ie_contacts and global_contacts are listed but not yet served.

Output Schema

NameRequiredDescriptionDefault
chipsYes
audienceYes
quantityYesA quantity named in the brief, such as 300, for quote_order limit.
readbackYesThe audience in one sentence, to confirm with the person.
questionsYes
unrecognisedYesWords of the brief that matched no filter, shown rather than guessed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses cost and auth ('free and needs no account'), the no-guessing fallback ('unrecognised, never guessed'), the PECR default that excludes sole traders and ordinary partnerships on email audiences, and the lawful basis. These are exactly the behavioural traits an agent cannot infer from structured fields.

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 readback instruction are front-loaded, and no sentence is filler. The closing compliance and PECR sentences are dense but each carries distinct information; the paragraph could be split for scannability but nothing is redundant.

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?

Cost, compliance defaults, fallback behaviour and the next step are all covered, and the output schema means the returned chips/readback need not be detailed. Minor gap: it references a toggle that changes subscriber inclusion, but no such parameter appears in the input schema, leaving the agent unsure how that switch is set.

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 coverage is 100%, with the brief example and dataset liveness already documented in the schema, so the description is not required to carry parameter detail. It adds only indirect context about how unmatched words are handled and about the email/corporate-subscriber default, which touches dataset behaviour but does not explain the enum itself. Baseline 3 is appropriate.

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 description gives a concrete verb and resource — compiling a plain English brief into an audience definition — and enumerates the returned artifacts (readback sentence, editable chips, clarifying questions). Its role is clearly separated from the counting step by naming count_audience as the follow-on.

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?

It states explicitly when to use it first ('for a request in words'), what to do with the result ('read the readback to the user and settle the questions before counting'), and which tool to call next. That is a full when/when-not/next-step routing instruction.

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