Skip to main content
Glama

AdsAgent — Meta Ads MCP

interests_use_targets

Destructive

Create or reuse a temporary audience-targeting draft in AdsAgent from targeting_search picks and return its interest_pack_name. Does not create, publish, or modify Meta ads. Unkept drafts expire after 7 days; this call may delete expired drafts

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": {
      "targets": "<targets>"
    },
    "name": "interests_use_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetsYes

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
  2. Changed6 schema fields changed
    • addedOutput schema / else / then / properties / category
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / expected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / else / then / properties / failure_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / responsibility_hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / route
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / user_visible
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.2/5.0
Behavior4/5

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

Goes beyond the annotations: explains that drafts are temporary, expire in 7 days if unkept, and that this call itself may delete expired drafts — which is precisely the destructive behavior behind destructiveHint=true. Adds real context. It stops short of saying how reuse matches an existing draft or whether deletion affects other sessions' drafts.

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?

Three short sentences, front-loaded with the action and output, then scope exclusions, then lifespan behavior. No filler; every sentence adds a fact.

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 covering the return value and annotations covering safety profile, the description supplies the remaining essentials: source of inputs, non-publishing scope, and draft expiry. The main gap is the handoff to interests_keep_draft for retention, which matters for correct usage.

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?

One parameter with 0% schema description coverage, so the description must carry the load. It usefully says targets come from targeting_search picks, which explains the {targeting_type, id} shape conceptually, but does not describe the enum values or id format expected. Partial compensation only.

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?

Specific verb+resource: creates or reuses a temporary audience-targeting draft in AdsAgent, names the source (targeting_search picks) and the returned value (interest_pack_name). An agent can distinguish it from interests_save_targets or interests_archive without opening schemas.

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 'from targeting_search picks' clause establishes the pipeline context and when to call it. The negative scope statement ('does not create, publish, or modify Meta ads') rules out an expected misuse. However, it never names the natural follow-up sibling interests_keep_draft or contrasts with interests_save_targets, so the alternative routing is only implied.

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