CampaTune for AI agents
Optimize social media campaign copy with synthetic audience comparisons and constraint checks.
Read this guide, capabilities and workflow without registration or payment. Simple rewriting can be done directly; superiority over direct generation is unmeasured.
Discovery and connection
Finding CampaTune in the general Bazaar index
Curated-only search is a separate scope. An absent curated result does not establish absence from the general index. The following free search includes non-curated resources; it does not authorize a purchase or call proxy_tool_call.
{
"name": "search_resources",
"arguments": {
"query": "social media campaign copy optimization",
"curatedOnly": false,
"limit": 20
}
}Search MCP endpoint: https://api.cdp.coinbase.com/platform/v2/x402/discovery/mcp
Exact USDC workflow
POST https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-wallets: Create a free credit access token. Save and back it up; reuse an existing token if available.POST https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-quotes: Send X-CampaTune-Token. Read estimated_amount_usdc, maximum_amount_usdc and balance. This creates a quote without AI execution or payment.POST https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-topups: Only if needed, fund enough available balance for the quoted reservation, within the user's authorized budget. Send the same token and use an x402 exact EIP-3009 client. A top-up alone does not start an order. If settlement is uncertain, query its status; do not pay again.POST https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-orders: After approval of the quoted ceiling, send the same token. Reserves credits and starts processing. Retry with the same key.GET https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/orders/<ORDER_ID>: Poll status using the same token. Do not submit a new order while this one is pending.GET https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/orders/<ORDER_ID>/result: Retrieve the JSON result using the same token after successful processing and payment.
First obtain a campaign quote. Fund enough for its reservation ceiling only with prior payment authority. A 0.01 USDC top-up may not cover that ceiling. Preparing a top-up does not submit a signature, transfer funds or start optimization. HTTP 402 without a signature is a payment challenge, not evidence of payment failure. Never send private keys or seed phrases.
Complete input, exact/upto workflows and limitations
{
"name": "CampaTune Campaign Optimizer",
"description": "Improve social media campaign participation copy and compare AI-simulated audience responses while preserving campaign facts and required terms.",
"outputs": [
"optimized campaign copy",
"agent_summary decision evidence",
"synthetic audience evaluations",
"JSON report and actual usage billing"
],
"agent_contract": {
"version": "campatune.agent-contract/v1",
"purpose": "Delegate bounded search and synthetic evaluation of social media campaign participation copy, with supplied-fact checks and an auditable JSON result.",
"when_to_use": [
"Compare a concrete campaign invitation against revised wording for supplied fictional or consented audience personas.",
"Inspect participation burden, synthetic response quality and supplied campaign constraints together.",
"Delegate candidate search and optionally evaluate the selected wording again with separate seeds."
],
"when_not_to_use": [
"A simple rewrite, translation or open-ended brainstorming task that the calling agent can complete directly.",
"Actual audience research, measured A/B testing, conversion prediction, social posting or ad placement."
],
"required_inputs": [
"keywords or fixed_information",
"one or more fictional or consented personas"
],
"comparison_inputs": {
"original_post": "Editable invitation only; required for a comparison against the caller's draft. Keep facts in fixed_information.",
"fixed_information": "Supplied brand, product, offer, period, eligibility and required/prohibited wording. Omitted facts remain hypothetical.",
"search.independent_evaluation": "Use true when a separate-seed re-evaluation of the original and selected copy is needed. It adds model calls and is included in the quote.",
"ugc_count": "Number of synthetic comments to deliver, not real participant responses. Internal simulation still runs when this is zero."
},
"delegated_work": [
"Bounded candidate search",
"Synthetic evaluation against the same supplied personas",
"Fixed-field and specified-constraint checks",
"Optional separate-seed re-evaluation",
"Search trajectory, model usage and final billing records"
],
"decision_fields": {
"agent_summary.assessment": "Machine-readable evidence classification; never a publication approval or a real-world performance claim.",
"agent_summary.comparison": "Original and selected invitation, simulated CPS difference and separate-seed evaluation if requested.",
"agent_summary.checks": "Supplied-constraint results and remaining checks before use.",
"agent_summary.evidence": "Candidate/persona counts, evaluation scope and references into the detailed report.",
"billing": "Final usage charge added after successful settlement; read currency and the accepted quote separately."
},
"evidence_limits": [
"No measured superiority over a calling agent's direct generation has been established.",
"CPS differences are synthetic score differences, not percentage-point changes in participation or sales.",
"Separate seeds do not establish an independent model, statistical significance or real-world validation.",
"Fixed-field preservation and specified-constraint checks do not guarantee semantic factuality.",
"Runtime, cost and quality depend on input, models and search settings; a historical run is not an SLA."
],
"execution": "Quotes persist estimates but run no AI and move no money. Paid execution requires prior authority covering the quoted ceiling. Poll the existing order and retrieve its result; do not place a replacement order just to retrieve output.",
"benchmark": {
"status": "not_measured",
"protocol": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/evaluation-protocol",
"scope": "Compare saved direct-generation and CampaTune outputs with the same inputs, explicit budgets and blinded external review; no superiority claim until measured."
},
"assessment_values": {
"demo_only": "Deterministic demo; no live quality evidence.",
"no_caller_draft_baseline": "original_post absent; no caller-draft improvement comparison.",
"constraint_review_required": "Specified constraints or protected-field checks did not pass.",
"insufficient_evidence": "Required comparison scores or expressions are missing or invalid.",
"unchanged_copy": "Selected editable invitation equals the original.",
"higher_on_search_evaluation_only": "Higher synthetic search score; no separate-seed confirmation.",
"no_gain_on_search_evaluation": "No positive synthetic search score difference.",
"higher_on_separate_seed_evaluation": "Higher synthetic score with separate seeds; not statistical or real-world validation.",
"no_gain_on_separate_seed_evaluation": "Separate-seed evaluation does not show a positive score difference."
}
},
"capabilities_url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/capabilities",
"profile_url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/profile",
"bazaar_search": {
"mcp_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/mcp",
"tool": "search_resources",
"arguments": {
"query": "social media campaign copy optimization",
"curatedOnly": false,
"limit": 20
},
"scope_note": "Coinbase's curated-only search and the general Bazaar index are different scopes. This request includes non-curated resources. Indexing does not establish curated placement or suitability for a task.",
"payment_note": "Search only. A search result is not payment authority; this example does not call proxy_tool_call."
},
"limitations": "Simulated responses are not measured campaign outcomes. No SNS posting or advertising placement is included. Use fictional or consented audience summaries.",
"available": true,
"network": "eip155:8453",
"pricing": {
"minimum_usage_usdc": "0.01",
"description": "Usage-based. The quote's maximum_amount_usdc is a reservation/authorization ceiling, not the final charge. A 0.01 USDC top-up may be smaller than the required reservation.",
"maximum_ai_budget_usd": 0.05
},
"input_schema": {
"$defs": {
"FixedInformation": {
"additionalProperties": false,
"properties": {
"product": {
"maxLength": 3000,
"minLength": 1,
"title": "Product",
"type": "string"
},
"brand": {
"default": "[brand unspecified]",
"maxLength": 3000,
"minLength": 1,
"title": "Brand",
"type": "string"
},
"offer": {
"default": "[offer unspecified]",
"maxLength": 3000,
"minLength": 1,
"title": "Offer",
"type": "string"
},
"period": {
"default": "[period unspecified]",
"maxLength": 3000,
"minLength": 1,
"title": "Period",
"type": "string"
},
"eligibility": {
"default": "[eligibility unspecified]",
"maxLength": 3000,
"minLength": 1,
"title": "Eligibility",
"type": "string"
},
"required_terms": {
"items": {
"maxLength": 3000,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Required Terms",
"type": "array"
},
"required_hashtags": {
"items": {
"maxLength": 3000,
"minLength": 1,
"type": "string"
},
"maxItems": 10,
"title": "Required Hashtags",
"type": "array"
},
"forbidden_claims": {
"items": {
"maxLength": 3000,
"minLength": 1,
"type": "string"
},
"maxItems": 30,
"title": "Forbidden Claims",
"type": "array"
}
},
"required": [
"product"
],
"title": "FixedInformation",
"type": "object"
},
"PersonaInput": {
"additionalProperties": false,
"properties": {
"description": {
"anyOf": [
{
"maxLength": 3000,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "自由記述の補足。従来の入力形式も利用可能",
"title": "Description"
},
"age": {
"anyOf": [
{
"maximum": 120,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Age"
},
"age_range": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Age Range"
},
"gender": {
"anyOf": [
{
"maxLength": 100,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Gender"
},
"occupation": {
"anyOf": [
{
"maxLength": 200,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Occupation"
},
"hobbies": {
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Hobbies",
"type": "array"
},
"keywords": {
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Keywords",
"type": "array"
}
},
"title": "PersonaInput",
"type": "object"
},
"RoleModels": {
"additionalProperties": false,
"properties": {
"optimization": {
"anyOf": [
{
"maxLength": 150,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Optimization"
},
"simulation": {
"anyOf": [
{
"maxLength": 150,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Simulation"
},
"evaluation": {
"anyOf": [
{
"maxLength": 150,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Evaluation"
}
},
"title": "RoleModels",
"type": "object"
},
"SearchOptions": {
"additionalProperties": false,
"properties": {
"method": {
"anyOf": [
{
"enum": [
"fixed_cps",
"prefpo_cps"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Method"
},
"iterations": {
"anyOf": [
{
"maximum": 50,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Iterations"
},
"samples_per_persona": {
"anyOf": [
{
"maximum": 10,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Samples Per Persona"
},
"independent_evaluation": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Independent Evaluation"
},
"confirmation_samples_per_persona": {
"anyOf": [
{
"maximum": 10,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Confirmation Samples Per Persona"
}
},
"title": "SearchOptions",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"output_language": {
"default": "auto",
"description": "Output language tag, e.g. en, ja, zh-Hans, pt-BR, ar. No language allowlist. auto follows original_post, then product/keywords. Applies to editable copy and synthetic UGC; fixed facts, required terms and hashtags stay verbatim. Model quality varies by language.",
"maxLength": 63,
"minLength": 2,
"pattern": "^(?:auto|[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*)$",
"title": "Output Language",
"type": "string"
},
"keywords": {
"description": "Campaign product, theme or audience-interest keywords from the conversation. Required unless fixed_information is supplied; keywords alone describe a hypothetical campaign.",
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 15,
"title": "Keywords",
"type": "array"
},
"fixed_information": {
"anyOf": [
{
"$ref": "#/$defs/FixedInformation"
},
{
"type": "null"
}
],
"default": null
},
"original_post": {
"anyOf": [
{
"maxLength": 3000,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "固定情報を含めない、最適化対象の呼びかけ文",
"title": "Original Post"
},
"personas": {
"description": "Target audiences to simulate, expressed as fictional or consented summaries. Use the audience attributes the user supplied, such as age_range, interests or occupation; do not invent demographic attributes or send real user histories.",
"items": {
"$ref": "#/$defs/PersonaInput"
},
"maxItems": 8,
"minItems": 1,
"title": "Personas",
"type": "array"
},
"model": {
"default": "recommended",
"maxLength": 150,
"minLength": 1,
"title": "Model",
"type": "string"
},
"models": {
"$ref": "#/$defs/RoleModels"
},
"plan": {
"default": "light",
"enum": [
"light",
"standard",
"advanced"
],
"title": "Plan",
"type": "string"
},
"search": {
"$ref": "#/$defs/SearchOptions"
},
"generate_ugc": {
"default": false,
"description": "Include synthetic audience comments in the paid order result. Set true when the user wants examples of possible replies or participation posts; not real customer feedback. A non-null ugc_count takes precedence. The quote itself generates no comments.",
"title": "Generate Ugc",
"type": "boolean"
},
"ugc_count": {
"anyOf": [
{
"maximum": 100,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "納品する合成UGC数。指定時はgenerate_ugcより優先",
"title": "Ugc Count"
},
"max_model_calls": {
"default": 2000,
"maximum": 2000,
"minimum": 1,
"title": "Max Model Calls",
"type": "integer"
},
"max_price_jpy": {
"default": 10000,
"description": "Maximum total service price in JPY. This is a spending ceiling, not a requested top-up or an estimate. Respect the user's authorized budget before placing a paid order.",
"maximum": 1000000,
"minimum": 1,
"title": "Max Price Jpy",
"type": "integer"
},
"max_model_cost_usd": {
"default": 0.05,
"description": "AI cost allowance in USD, used to calculate the JPY balance reservation ceiling. The estimate can be much lower than that ceiling. A smaller allowance reduces the required reservation but may be insufficient to complete processing; quote creation does not run AI.",
"maximum": 0.05,
"minimum": 0.01,
"title": "Max Model Cost Usd",
"type": "number"
},
"seed": {
"default": 42,
"maximum": 2147483647,
"minimum": 0,
"title": "Seed",
"type": "integer"
},
"discovery_source": {
"default": "direct",
"enum": [
"direct",
"mcp_registry",
"glama",
"adcp",
"chatgpt",
"other"
],
"title": "Discovery Source",
"type": "string"
}
},
"required": [
"personas"
],
"title": "OptimizationRequest",
"type": "object"
},
"input_example": {
"keywords": [
"fictional tea campaign"
],
"original_post": "Tell us how you enjoy a quiet tea break.",
"personas": [
{
"description": "Fictional audience interested in tea and relaxing routines."
}
],
"output_language": "en",
"model": "recommended",
"plan": "light",
"max_model_cost_usd": 0.05
},
"recommended_scheme": "exact",
"exact": [
{
"method": "POST",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-wallets",
"body": {},
"action": "Create a free credit access token. Save and back it up; reuse an existing token if available."
},
{
"method": "POST",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-quotes",
"body": "Campaign input matching input_schema",
"action": "Send X-CampaTune-Token. Read estimated_amount_usdc, maximum_amount_usdc and balance. This creates a quote without AI execution or payment."
},
{
"method": "POST",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-topups",
"body": {
"amount_usdc": "<AUTHORIZED_FUNDING_AMOUNT>",
"idempotency_key": "<UNIQUE_TOPUP_ID>"
},
"action": "Only if needed, fund enough available balance for the quoted reservation, within the user's authorized budget. Send the same token and use an x402 exact EIP-3009 client. A top-up alone does not start an order. If settlement is uncertain, query its status; do not pay again."
},
{
"method": "POST",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/credit-orders",
"body": {
"quote_id": "<QUOTE_ID>",
"idempotency_key": "<UNIQUE_ORDER_ID>"
},
"action": "After approval of the quoted ceiling, send the same token. Reserves credits and starts processing. Retry with the same key."
}
],
"upto": [
{
"method": "POST",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/quotes",
"body": "Campaign input matching input_schema",
"action": "Get a free quote and save its private access_token. Requires an x402 upto-compatible client."
},
{
"method": "POST",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/orders",
"body": {
"quote_id": "<QUOTE_ID>",
"idempotency_key": "<UNIQUE_ORDER_ID>"
},
"action": "After approval of maximum_amount_usdc, send the quote token and authorize the returned 402 with an x402 upto client. Starts processing; final usage settles before delivery."
}
],
"delivery": [
{
"method": "GET",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/orders/<ORDER_ID>",
"action": "Poll status using the same token. Do not submit a new order while this one is pending."
},
{
"method": "GET",
"url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/v1/orders/<ORDER_ID>/result",
"action": "Retrieve the JSON result using the same token after successful processing and payment."
}
],
"token_header": "X-CampaTune-Token",
"mcp_url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/mcp/",
"guide_url": "https://campatune-api-373804304721.asia-northeast1.run.app/agent/guide"
}The API origin serves these instructions directly. For the separate workers.dev website, use a descriptive application User-Agent; some library defaults may receive Cloudflare 1010.