Skip to main content
Glama

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. Changed1 schema field changed
    • changedOutput schema / $defs / SinceFilter / properties / field / enum
      Previous value: -[
      -  "contact.last_validated_at",
      -  "email.last_verified_at",
      -  "signal.type",
      -  "signal.observed_at"
      -]New value: +[
      +  "contact.last_validated_at",
      +  "contact.last_confirmed_at",
      +  "contact.privacy_notice_last_sent_at",
      +  "contact.privacy_notice_first_sent_at",
      +  "email.last_verified_at",
      +  "signal.type",
      +  "signal.observed_at"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description rightly spends its words on things annotations cannot express: it is free, needs no account, carries a UK GDPR Art. 6(1)(f) lawful basis, and by default excludes sole traders and ordinary partnerships from email audiences under PECR unless the toggle changes. That is genuinely decision-relevant context a caller would otherwise lack.

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?

Front-loaded with the core action and the workflow, with no filler sentences. The closing compliance clause is dense and somewhat tangential to invocation, but it is relevant and compressed into one sentence rather than padded out.

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 read-only expansion helper with a full output schema, a 100%-covered input schema, and five parameters, the description supplies the one thing structured data cannot: the end-to-end workflow into count_audience plus the compliance constraints on the resulting audience. Return values need not be described because the output schema carries them.

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 100% and every parameter (mode, terms, bundle, expand, dataset) is already documented in the schema, including the exactly-one-of constraint. The description echoes the expansion concepts behind the expand sets and names sdm as a bundle example, but adds no syntax, defaults, or limits beyond what structured fields provide — baseline 3.

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 (expands title keywords into every matching title) and enumerates the expansion mechanics — plurals, department synonyms, ampersands, abbreviations — plus the bundle-resolution variant. An agent can distinguish this from count_audience or search_filter_values without opening a schema.

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 sequencing: call this before counting, show the user the expanded titles so they can edit, then put the returned filter into the audience and call count_audience. It also states the design principle ('nothing is expanded silently'), which tells the agent why this step is mandatory rather than optional.

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