Skip to main content
Glama

Preview ad targeting for a trend

preview_ad_targeting
Read-onlyIdempotent

Dry-run the keywords, interests or targeting facets one trend would add to the selected campaign on each connected ad platform, after TrendsAGI's paid-targeting suitability and brand-safety checks. Nothing is changed or saved; the user applies targeting in the TrendsAGI app. status is ready, no_connected_platforms (no ad account has a campaign selected) or paid_targeting_unavailable (the trend is excluded from paid targeting, e.g. politics, conflict or tragedy).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trend_id": "<trend_id>"
    },
    "name": "preview_ad_targeting"
  }
}

Input Schema

NameRequiredDescriptionDefault
trend_idYesNumeric trend id from list_trends, open_trend_radar or search_trend_insights.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description still adds meaningful behavior: a suitability and brand-safety filter runs before results, the output carries a status field with three defined outcomes, and the exclusion categories (politics, conflict, tragedy) are spelled out. The 'nothing is changed or saved; the user applies targeting in the app' sentence is the crucial hand-off fact an agent could not infer from annotations.

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 action and scope, followed by a short safety sentence and then the status semantics — no filler. The opening sentence is dense and runs long (nested scope plus the check pipeline plus per-platform qualifier), which costs a little readability. Every clause still carries information.

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?

For a one-parameter, read-only dry-run with no output schema, the definition covers what is produced, what is checked, and the status outcomes, which is what an agent needs to act and interpret. It does not sketch the shape of the per-platform targeting payload returned when status is ready, leaving the success response partly unspecified.

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?

Only one parameter exists and schema coverage is 100%, with the schema itself pointing to list_trends, open_trend_radar and search_trend_insights as sources for the id. The description narrows it to 'one trend' but adds no format or constraint detail beyond that. Baseline 3 applies when the schema already does the documenting.

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 precise verb ('Dry-run') and the exact resource produced (keywords, interests or targeting facets a single trend would add to the selected campaign on each connected ad platform). The scope — one trend, selected campaign, all connected platforms, post suitability/brand-safety checks — makes it clearly distinguishable from list_targeting_proposals or get_trend_ai_insights 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 Guidelines4/5

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

It makes the usage contract explicit: this is a preview, nothing is changed or saved, and application happens in the TrendsAGI app, which rules out treating it as an apply/execute tool. The enumerated status values (no_connected_platforms, paid_targeting_unavailable) tell the agent the preconditions under which it returns nothing useful. It stops short of naming a sibling to use for the actual apply step or for listing existing proposals, so no explicit alternative routing.

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.