Skip to main content
Glama

Audience segments

get_audience_segments
Read-only

Discover available Amazon Ads audience IDs for a profile from targetableEntities/list, with optional text and category-path search. The live endpoint's taxonomy is returned in category; type is often AUDIENCE, and Amazon may omit name, provider, status, and description.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoOptional free-text search for audience segment names, descriptions, types, or categories.
next_tokenNoAmazon pagination token from a previous response.
profile_idNoNumeric Amazon Ads profile ID. Optional when this API key has exactly one enabled Ads profile; agentcentral will default it. Call get_account_info for amazon_ads.enabled_profile_ids. Do not use the marketplace ID, tenant ID, or API key prefix.
max_resultsNoMaximum number of audience segments to return. Defaults to 25.
segment_typesNoDeprecated legacy filter. segment_types is deprecated for get_audience_segments on targetableEntities/list. Use category_path_contains to filter Amazon's current category taxonomy.
include_raw_rowsNoFalse returns compact rows. Default true.
include_diagnosticsNoTrue may add expanded freshness diagnostics. Basic empty-result data-window diagnostics are included by default when available.
category_path_containsNoOptional case-insensitive substring filter against Amazon's category path, for example 'Custom-built > Product'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so safety is covered. The description adds real value beyond that: the backing endpoint (targetableEntities/list), that taxonomy arrives in the 'category' field, that 'type' is often AUDIENCE, and that Amazon may omit name/provider/status/description.

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?

Two dense sentences, front-loaded with what the tool returns and its source, then the caveat about partial data. No filler, though the second sentence is packed to the point of being slightly hard to parse.

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?

With an output schema present and annotations covering safety, the description need not explain returns; it appropriately focuses on the data-quality caveat (omitted fields). Nothing critical for a correct call is missing, though sibling differentiation would make it fully complete.

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%, including the deprecation note on segment_types and the profile_id guidance, so the schema carries parameter meaning. The description only restates 'optional text and category-path search' without adding syntax or format detail, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: 'Discover available Amazon Ads audience IDs for a profile from targetableEntities/list'. It is clearly distinct in kind, but it never distinguishes itself from any named sibling (no other audience-segment tool exists, but it also doesn't route away from e.g. get_dsp_entities_live).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'With optional text and category-path search' implies how the tool is used, but there is no explicit when-to-use guidance, no when-not, and no alternative named. An agent gets the gist but must infer the triggering conditions.

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.