Skip to main content
Glama

Whathead Ad Operations

X Ads

x_ads_native_action
Destructive

Complete X Ads API v12 native gateway generated from the local MDFILES/x-ads-api snapshot. Covers accounts, campaigns, line items, promoted Tweets, creatives, cards, media upload/library, audiences, targeting, measurement, analytics, and catalogs. Use action=LIST_ACTIONS for discovery. Writes are dry-run by default.

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": {
      "action": "<action>"
    },
    "name": "x_ads_native_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoLIST_ACTIONS page size.
queryNoExplicit query parameters; merged after params.
actionYesCanonical X Ads native action, legacy uppercase action, LIST_ACTIONS, or DESCRIBE_ACTION.
offsetNoLIST_ACTIONS zero-based offset.
paramsNoNative X query/form parameters. Required path values may also be supplied here or top-level.
searchNoLIST_ACTIONS case-insensitive action, alias, category, method, or endpoint filter.
compactNoRemove empty values while preserving provider failures and pagination metadata.
dry_runNoWrites default to dry-run. Set false to execute after reviewing the request.
payloadNoNative request body. Accepts an object, batch array, or stringified JSON object/array for cached-client compatibility.
categoryNoLIST_ACTIONS category filter.
confirmedNoRequired with dry_run:false for DELETE actions.
max_itemsNoMaximum items returned from each result array.
read_onlyNoLIST_ACTIONS read/write filter.
account_idNoAuthorized X Ads account ID. May also be supplied in path_params.
path_paramsNoNative path placeholders such as account_id, campaign_id, line_item_id, card_id, or scheduled_feed_id.
connection_idNoOptional explicit X OAuth connection ID for users with multiple connected X accounts.
result_fieldsNoOptional response projection. Provider error and partial-failure envelopes are always preserved.
target_actionNoAction to describe when action=DESCRIBE_ACTION.
idempotency_keyNoRecommended for live writes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and idempotentHint=false, so the safety profile is known. The description adds a genuinely non-redundant fact: writes are dry-run by default, which changes how an agent must plan a mutation call. It still omits confirmation requirements for deletes and auth/connection prerequisites, both of which live only in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The discovery hint and dry-run note are front-loaded and useful, but the opening clause about being 'generated from the local MDFILES/x-ads-api snapshot' is internal provenance with no decision value for an agent. The long domain enumeration is defensible for scoping but partly duplicates what LIST_ACTIONS would reveal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, action-dispatch gateway with no output schema, the description covers the surface area but not the operating model: it does not explain that canonical action names are discoverable via DESCRIBE_ACTION, how path_params interact with top-level IDs, or what error envelopes look like. Adequate to start, incomplete for confident first-call execution.

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 already documents all 19 parameters including action, dry_run, confirmed, path_params, and result_fields. The description adds only the LIST_ACTIONS hint and does not explain the DESCRIBE_ACTION path, the path_params/top-level duality, or payload shapes beyond what the schema states. Baseline 3 is appropriate when the schema carries this much detail.

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?

The description states a specific resource and mechanism: a native gateway to the X Ads API v12, then enumerates the covered domains (accounts, campaigns, line items, promoted Tweets, creatives, audiences, measurement, catalogs). An agent can tell this is the X-platform dispatcher rather than a single-operation tool. It stops short of describing what any individual action does, since the tool is an action-dispatch gateway.

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?

Only one routing instruction is given: 'Use action=LIST_ACTIONS for discovery.' Nothing says when to pick this over the sibling platform gateways (google_ads_native_action, meta_native_action, etc.) or when a write should be executed versus left as dry-run. Usage is implied by the platform name and the domain list rather than stated.

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.