Skip to main content
Glama

ads_campaign_get

Read-onlyIdempotent

Get one campaign 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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "ads_campaign_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNoRefetch from the ad network before answering instead of using the last synced copy
campaign_idYesCampaign id: the Postproxy id (id field of a campaign), 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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond that: the default behavior reads a cached 'last synced copy' with potentially stale metrics, and live=true forces a network refetch. It does not mention latency, rate limits, or what happens when a campaign is missing, but the freshness tradeoff is the key operational detail and it is disclosed.

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?

Front-loads the core action and freshness scope, then gives the return shape and the one meaningful flag in two sentences. The field enumeration is terse and terminated with '...' rather than exhaustive, so nothing is wasted.

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, the description carries the burden of describing return values and does so with a concrete field list. Combined with the disclosed live/cache behavior, an agent has enough to call this correctly; minor gaps are error and empty-result behavior.

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 coverage is 100%, so all three parameters including the live flag and the id-vs-platform_id distinction are already documented in structured fields. The description reiterates the live=true semantics without adding format, default, or edge-case detail beyond the schema, 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?

States a specific verb and resource ('Get one campaign') plus the scope ('with its latest synced metrics'), and enumerates the returned fields, which separates it from analytics-style siblings. It stops short of naming a sibling such as ads_campaign_targeting_get, so an agent must infer that field-level detail lives elsewhere.

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?

The only explicit usage guidance is when to set live=true, which is genuinely actionable ('refetch from the network first' vs using the last synced copy). There is no statement of when to prefer this over ads_campaign_analytics or the narrower ads_campaign_targeting_get / ads_campaign_ad_schedule_get getters, so 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.