Skip to main content
Glama

MyDataHub

Expand job titles

expand_job_titles
Read-onlyIdempotent

Expands title keywords into every matching title (plurals, department synonyms, ampersands, abbreviations such as CEO), each with a count, or shows what a bundle such as sdm resolves to. Use it before counting so the user can see and edit which titles a keyword covers; nothing is expanded silently. Free and needs no account. Put the returned filter into the audience, then call count_audience. 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
modeNocontains (the default) matches titles containing a term, starts_with matches titles beginning with it, exact takes verbatim titles with no expansion.
termsNoTitle keywords to expand, such as marketing manager.
bundleNoA title bundle to show: sdm, manager_and_above or owner_managed.
expandNoExpansion sets to apply, each once. Left out, the four default sets apply.
datasetNoThe dataset an audience draws from. uk_contacts is live; ie_contacts and global_contacts are listed but not yet served.

Output Schema

NameRequiredDescriptionDefault
modeYescontains (the default) matches titles containing a term, starts_with matches titles beginning with it, exact takes verbatim titles with no expansion.
termsYes
bundleYes
expandYes
filterYesA ready matches filter for the terms, or null for a bundle.
disclosureYes
total_contactsYes
dataset_versionYesThe immutable weekly build a count is bound to, such as 2026-W39. The last 52 stay queryable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, closed-world profile, and the description adds real context: no cost, no account required, no silent expansion, and the PECR corporate-subscriber default for email audiences. The GDPR lawful-basis sentence is tangential to invoking this specific tool, so it is useful framing rather than direct behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The workflow and scoping information are front-loaded and earn their place, but the closing compliance sentence (UK GDPR Article 6(1)(f), PECR sole-trader exclusion) is long and only loosely tied to selecting or invoking this expansion tool. The result is an overlong description where the last third is boilerplate.

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?

An output schema exists, so return values need not be described, and the description supplies the workflow, cost, and compliance defaults an agent needs. The main gap is that dataset availability (ie_contacts and global_contacts not yet served) is left entirely to the schema despite being a likely failure mode.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes further by explaining what the expansion sets mean in practice (plurals, department synonyms, ampersands, abbreviations like CEO) where the schema only lists enum names. It also illustrates a bundle value ('sdm'), though it does not touch mode or the dataset availability caveat, which the schema handles alone.

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?

Specific verb and resource: 'Expands title keywords into every matching title' with concrete examples of what expansion covers (plurals, department synonyms, ampersands, abbreviations such as CEO) and the alternate bundle-resolution behavior. It is clearly distinguishable from count_audience, which it names as the downstream step rather than a competitor.

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?

Explicit sequencing: use it before counting so the user can review and edit the expanded titles, then place the returned filter into the audience and call count_audience. It also states the negative guarantee ('nothing is expanded silently'), which tells the agent why this step must not be skipped.

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