Skip to main content
Glama

ads_ad_set_get

Read-onlyIdempotent

Get one ad set with its latest synced metrics. Returns the ad object: { id, kind, platform, platform_id, ad_account_id, campaign_id, ad_set_id, name, status, platform_status, budget, schedule, targeting, review, metrics, ... }. Pass live=true to refetch it and its metrics from the network first.

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": {
      "ad_set_id": "<ad_set_id>"
    },
    "name": "ads_ad_set_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNoRefetch from the ad network before answering instead of using the last synced copy
ad_set_idYesAd set id: the Postproxy id (id field of an ad set), not the network's platform_id
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety bar is partly met. The description adds genuinely non-obvious behavior: that by default the response is a synced copy, and that live=true triggers a network refetch of both the object and its metrics. It does not mention failure behavior when the ad set or network fetch fails.

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 front-loaded sentences with zero preamble; the core operation comes first and the flag behavior second. The inline object shape enumeration is slightly dense but earns its place because no output schema is supplied.

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 no output schema, describing the returned fields and the synced-vs-live distinction is exactly the missing context this tool needs. The id-vs-platform_id trap is flagged and the rarely-needed profile_group_id is briefly characterized. Only error/empty-result behavior is unaddressed.

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%, so both the live flag and the ad_set_id vs platform_id distinction are already documented in the schema. The description restates the live semantics ("refetch it and its metrics from the network first") without adding format or edge-case detail, so this is 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?

States a specific verb and resource ("Get one ad set with its latest synced metrics"), and calls out the singular scope that separates it from a list operation like ads_ad_sets_list. An agent can distinguish it from ads_ad_get by the resource alone.

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?

Usage is implied through the live flag (refetch vs use last synced copy), which is a useful contextual cue. However, there is no explicit when-to-use guidance versus ads_ad_sets_list, ads_ad_get, or the analytics siblings, and no stated exclusions or prerequisites.

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.