EmailmoversMyDataHub docs
Browse the docs

Reference / MCP tool reference

Reference

Expand job titles

expand_job_titles: 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.

Generated from the contractsView as Markdown

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.

PropertyValue
Tool nameexpand_job_titles
Position in tools/list5 of 22
CostFree
ScopeNone. Works without an account.
AnnotationsreadOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false
KindRead only; idempotent, not destructive, closed world
REST equivalentPOST /v1/job-titles/expand

Input

The schema sets additionalProperties to false, so a member that is not listed is refused.

MemberTypeRequiredDescription
termsarray of stringnoTitle keywords to expand, such as marketing manager.
bundleenum: sdm, manager_and_above, owner_managednoA title bundle to show: sdm, manager_and_above or owner_managed.
modeenum: contains, starts_with, exactnocontains (the default) matches titles containing a term, starts_with matches titles beginning with it, exact takes verbatim titles with no expansion.
expandarray of enum: plural_singular, department_synonyms, ampersand_and, abbreviations, permutationsnoExpansion sets to apply, each once. Left out, the four default sets apply.
datasetenum: uk_contacts, ie_contacts, global_contactsnoThe dataset an audience draws from. uk_contacts is live; ie_contacts and global_contacts are listed but not yet served.

Example call

The params of a tools/call request:

{
  "name": "expand_job_titles",
  "arguments": {
    "terms": ["marketing manager"],
    "mode": "contains"
  }
}

Output

The result carries structuredContent that matches this schema, and one line of text that leads with the number.

MemberTypeAlways presentDescription
dataset_versionstringyesThe immutable weekly build a count is bound to, such as 2026-W39. The last 52 stay queryable.
modeenum: contains, starts_with, exactyescontains (the default) matches titles containing a term, starts_with matches titles beginning with it, exact takes verbatim titles with no expansion.
expandarray of enum: plural_singular, department_synonyms, ampersand_and, abbreviations, permutationsyes
termsarray of ExpandedTermyes
terms[].termstringyesA matched title.
terms[].from_termstringyesThe input term it came from.
terms[].expansion_setenum: plural_singular, department_synonyms, ampersand_and, abbreviations, permutations or inputyesThe expansion set that produced it, or input for the term itself.
terms[].contactsinteger (0 or more) or under 10 or suppressedyesA whole number; "under 10" when disclosure control withholds a small cell; or "suppressed" when secondary suppression hides a cell of 10 or more in a cross-tab or breakdown, so totals cannot be differenced. Anonymous and trial callers see cells rounded to the nearest 5.
terms[].excludedbooleannoTrue when exclude_terms removed it from the audience.
total_contactsinteger (0 or more) or under 10 or suppressedyesA whole number; "under 10" when disclosure control withholds a small cell; or "suppressed" when secondary suppression hides a cell of 10 or more in a cross-tab or breakdown, so totals cannot be differenced. Anonymous and trial callers see cells rounded to the nearest 5.
bundleobject or nullyes
bundle.idenum: sdm, manager_and_above, owner_managedyes
bundle.labelstringyes
bundle.statusenum: confirmed, proposed, to_confirmyes
bundle.resolves_toWhereNodeyesA group (all, any, not), a title bundle or a filter. Groups nest up to 32 deep, and a where tree holds up to 1,000 filters, groups and bundles.
filterFilter or nullyesA ready matches filter for the terms, or null for a bundle.
disclosureDisclosureyesWhether these numbers are exact or protected: "under 10" cells, rounding to 5 and secondary suppression for anonymous and trial callers.
disclosure.levelenum: exact, roundedyesexact for authenticated paid callers; rounded for anonymous and trial callers, whose counts under 100 and every cell are rounded to the nearest 5.
disclosure.rounded_tointeger or nullyes5 when numbers are rounded; null when they are exact.
disclosure.secondary_suppressionbooleanyesTrue when cross-tab or breakdown cells of 10 or more were hidden as "suppressed" so totals cannot be differenced.
disclosure.notesarray of stringyes

Errors

A failed call returns isError true. The text content leads with the sentence a person acts on, then the whole problem as JSON, with code, detail, next_step and did_you_mean. A 401 and a step-up 403 are answered at HTTP level so the client can start authorisation. See Errors.