Skip to main content
Glama

List X ad campaigns

list_x_ad_campaigns
Read-onlyIdempotent

List campaigns in an X ads account. Use when the user asks what X/Twitter ads are running. Omit ad_account_id when the connection has exactly one ads account. Distinct from list_ad_campaigns (Meta).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.
ad_account_idNoAds account id from list_x_ad_accounts. Optional when the connection has exactly one ads account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds scope and the optional ad_account_id behavior, but does not disclose return format, pagination, or other behavioral traits beyond what annotations and schema already provide.

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 tight sentences with no filler: the action is front-loaded, the usage trigger is explicit, and the sibling disambiguation is valuable. Every sentence earns its place.

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 simple, read-only list tool with complete schema coverage and strong annotations, the description is sufficient. It could mention return format or behavior when no campaigns exist, but those are minor gaps given the low complexity and clear name/title.

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 the schema fully documents both parameters. The description's note about omitting ad_account_id duplicates the schema's property description rather than adding new meaning.

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: 'List campaigns in an X ads account.' It also explicitly distinguishes itself from list_ad_campaigns (Meta), making its scope unmistakable.

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

Usage Guidelines5/5

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

Provides a clear trigger ('Use when the user asks what X/Twitter ads are running') and names the alternative sibling (list_ad_campaigns for Meta). This gives an agent both when-to-use and when-not-to-use guidance.

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