Skip to main content
Glama

Check a draft

validate_campaign_draft
Read-onlyIdempotent

Check a draft before creating it, without creating anything: pass kind (campaign, ad_set or ad), the parent id (account_id, campaign_id or ad_set_id) and params with the same fields as create_campaign / create_ad_set / create_ad. Returns errors and warnings: text lengths, required fields, budget minimum and client cap, locations, special ad categories (jobs, housing, credit), image links and formats, and account blockers. Read-only; free: not counted as an action.

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": {
      "kind": "<kind>",
      "params": "<params>"
    },
    "name": "validate_campaign_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
paramsYes
ad_set_idNo
account_idNo
campaign_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context on top: the exact classes of feedback returned (text lengths, required fields, budget minimum and client cap, locations, special ad categories for jobs/housing/credit, image links/formats, account blockers) and the quota framing ("not counted as an action"). That is real behavior an agent cannot derive from the annotations.

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?

Front-loaded with the purpose and non-mutation guarantee, then the calling convention, then the return contents — a sensible order. The middle sentence is dense and runs long, but every clause carries information.

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 takes on the burden of describing returns and does so by enumerating validation categories. For a free-form nested params object it is close to complete, missing only how errors versus warnings are structured in the response and whether a success indicator is returned.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the load, and it largely does: it names the kind enum values, indicates which parent id accompanies each kind (account_id, campaign_id, ad_set_id), and specifies that params mirrors the fields of the corresponding create_* tool. It does not spell out the one-to-one kind-to-parent-id mapping, leaving a small inference gap on a 5-parameter tool.

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?

"Check a draft before creating it, without creating anything" names a specific verb (check/validate) and resource (a draft for campaign/ad_set/ad), and explicitly separates it from the create_campaign / create_ad_set / create_ad siblings. An agent can tell immediately that this is a dry-run validator, not a creator.

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?

It states the use case precisely (check before creating) and implicitly rules out creation ("without creating anything"), plus a cost-based incentive ("free: not counted as an action") that no sibling offers. It stops short of an explicit "use create_* to actually create" routing sentence, but the context is unambiguous.

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