Skip to main content
Glama

validate_campaign

LEGACY wallet flow — new integrations should use create_account and launch_campaign (API key + prepaid balance, no wallet). (quote_campaign is its equivalent for the key flow.) Checks a campaign BEFORE you pay for anything. Free, and needs no session or access token. Returns whether it is valid, every problem at once (not just the first), any adjustments we would make (expiry clamped, privacy threshold raised, empty questions dropped), and what it will cost — the escrow total for incentivized campaigns (rewards only: the campaign price is paid at activation), or the activation fee for no-reward ones. Call this first, fix anything it reports, and only then call get_session_nonce and pay. Pass the cohort SIZE, not the addresses: this endpoint never receives contact details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoCampaign title, shown to participants
questionsNo1-10 questions with non-empty text
cohortSizeNoHow many participants — the number, not the email addresses
minPercentNoPrivacy threshold; floored at 50
rewardMintNoSPL token mint for the reward; defaults to USDC
rewardModeNoDefaults to INCENTIVIZED
descriptionNoWhat you want to learn
expiresInDaysNo1-42, default 7
incentiveCentsNoReward per participant in cents (incentivized campaigns)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it states the tool is free, needs no session or access token, returns all problems at once, describes automatic adjustments (expiry clamped, privacy threshold raised, empty questions dropped), and explains cost behavior for incentivized versus no-reward campaigns. It also notes the endpoint never receives contact details.

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?

The description is dense but every sentence contributes routing, safety, return-value, or cost information. It is slightly long and leads with a legacy-migration warning before the core validation purpose, which delays the central action somewhat, but it remains well-structured and free of filler.

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

Completeness5/5

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

There is no output schema and no annotation coverage, yet the description explains what the tool returns, what it adjusts, what it costs, authentication requirements, call ordering, and the cohort-size constraint. For a 9-parameter validation tool, this is complete enough to call correctly and interpret results.

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 already 100%, so the baseline is 3. The description adds useful semantic emphasis beyond the schema, especially that the caller must pass cohort size rather than addresses and that rewards are paid at activation while no-reward campaigns incur an activation fee.

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?

The description states a specific verb and resource ('Checks a campaign') and explicitly distinguishes this legacy wallet flow from the recommended create_account and launch_campaign flow, plus quote_campaign as the key-flow equivalent. An agent can identify the tool's purpose and its place among siblings without opening any schema.

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?

It gives explicit ordering guidance: call this first, fix reported issues, then call get_session_nonce and pay. It also names alternatives for new integrations and clarifies that quote_campaign is the equivalent for the key flow, so when-to-use and when-not-to-use are both clear.

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