Skip to main content
Glama

Set audience targeting

set_targeting
Idempotent

Replace the survey's demographic targeting (each list you pass REPLACES that dimension; pass [] to clear it; omit to leave unchanged). Option names come from get_targeting.options. Re-prices and returns the new quote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
genderNoGender.
maritalNoMarital statuses (replace-all).
educationNoEducation levels (replace-all).
ethnicityNoEthnicities (replace-all).
survey_idYesSurvey id (see list_surveys, or the survey_id returned by a create tool).
age_rangesNoAge ranges, e.g. [{from:18,to:34},{from:35,to:54}]; [] = all adults.
employmentNoEmployment statuses (replace-all).
hhi_rangesNoHousehold income ranges; snapped to the country's income buckets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate this is a mutating but non-destructive and idempotent operation. The description adds valuable behavior: each dimension is replaced as a whole, [] clears it, omitting leaves it unchanged, and the call re-prices and returns a new quote. It does not fully describe error or validation behavior, but it gives substantial operational transparency beyond the annotations.

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

Conciseness5/5

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

Two tightly packed sentences with no filler. The most important behavioral rule is front-loaded, and the parenthetical covers the three call patterns (replace, clear, leave unchanged). Every clause earns its place.

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 an 8-parameter tool without an output schema, the description covers the essential non-schema knowledge: option name provenance, replace semantics, clearing, omission, and the return value. The schema already documents each parameter thoroughly, so nothing critical is missing for selecting and invoking this tool correctly.

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, but the description adds meaningful global semantics that the individual parameter descriptions cannot convey: replace-all behavior, clearing with [], omission semantics, source of option names, and the re-pricing side effect. This raises it above the baseline.

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 uses a specific verb ('Replace') and resource ('the survey's demographic targeting'), and immediately clarifies the replace-all behavior for each dimension. This distinctly differentiates it from the sibling set_location_targeting and from get_targeting, which is cited as the source of option names.

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?

The description clearly implies usage context for adjusting demographic targeting and tells the agent to obtain option names from get_targeting.options. It does not explicitly name set_location_targeting as the alternative for geographic targeting, so it misses the explicit when-not-to-use guidance needed for a 5.

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.