Skip to main content
Glama

Apply campaign setup · 应用活动准备设置(短.在线)

apply_campaign_setup

将 setup 应用于新活动或显式恢复。新活动产生新 campaign/item 身份。需要已注册账号。 Apply a setup to a new campaign or explicit recovery. New campaigns get new identities. Registered account required.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "new_campaign",
      "items": [
        {
          "destination_url": "https://example.com/b"
        }
      ],
      "setup_id": "setup_example"
    },
    "name": "apply_campaign_setup"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNonew_campaign or recovery.
itemsYesRows to ingest using the saved column mapping. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request.
setup_idYesSaved setup id from save_campaign_setup.
recovery_campaign_idNoRequired when mode is recovery.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "artifacts": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exception_list_markdown": {
      -            "type": "string"
      -          },
      -          "index_markdown": {
      -            "type": "string"
      -          },
      -          "ownership_instructions_slot_markdown": {
      -            "type": "string"
      -          },
      -          "qr_files": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "alias_filename": {
      -                  "type": "string"
      -                },
      -                "bytes_base64": {
      -                  "type": "string"
      -                },
      -                "filename": {
      -                  "type": "string"
      -                },
      -                "item_id": {
      -                  "type": "string"
      -                },
      -                "mime_type": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "filename",
      -                "item_id",
      -                "mime_type",
      -                "bytes_base64"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "spreadsheet_csv": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "spreadsheet_csv",
      -          "index_markdown",
      -          "exception_list_markdown",
      -          "ownership_instructions_slot_markdown",
      -          "qr_files"
      -        ],
      -        "type": "object"
      -      },
      -      "campaign_id": {
      -        "type": "string"
      -      },
      -      "items": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "changed_since_previous": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blocked_on": {
      -                  "type": "string"
      -                },
      -                "changed": {
      -                  "type": "boolean"
      -                },
      -                "fields": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "changed"
      -              ],
      -              "type": "object"
      -            },
      -            "checks": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "check": {
      -                    "type": "string"
      -                  },
      -                  "detail": {
      -                    "type": "string"
      -                  },
      -                  "passed": {
      -                    "type": [
      -                      "boolean",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "check",
      -                  "passed"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "exception": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "code": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "item_id": {
      -              "type": "string"
      -            },
      -            "qr_filename": {
      -              "type": "string"
      -            },
      -            "qr_filename_alias": {
      -              "type": "string"
      -            },
      -            "qr_revision": {
      -              "type": "number"
      -            },
      -            "qr_tracking_url": {
      -              "type": "string"
      -            },
      -            "returned_url": {
      -              "type": "string"
      -            },
      -            "short_url_ascii": {
      -              "type": "string"
      -            },
      -            "short_url_unicode": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "item_id",
      -            "status",
      -            "checks",
      -            "changed_since_previous"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ready_to_share": {
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "campaign_id",
      -      "ready_to_share",
      -      "items",
      -      "artifacts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "retry_after": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "error",
      -      "code",
      -      "message",
      -      "type",
      -      "title",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "artifacts": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exception_list_markdown": {
      +            "type": "string"
      +          },
      +          "index_markdown": {
      +            "type": "string"
      +          },
      +          "ownership_instructions_slot_markdown": {
      +            "type": "string"
      +          },
      +          "qr_files": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "alias_filename": {
      +                  "type": "string"
      +                },
      +                "bytes_base64": {
      +                  "type": "string"
      +                },
      +                "filename": {
      +                  "type": "string"
      +                },
      +                "item_id": {
      +                  "type": "string"
      +                },
      +                "mime_type": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "filename",
      +                "item_id",
      +                "mime_type",
      +                "bytes_base64"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "spreadsheet_csv": {
      +            "type": "string"
      +          },
      +          "spreadsheet_notice": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "en": {
      +                "type": "string"
      +              },
      +              "zh-CN": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "en",
      +              "zh-CN"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "spreadsheet_csv",
      +          "spreadsheet_notice",
      +          "index_markdown",
      +          "exception_list_markdown",
      +          "ownership_instructions_slot_markdown",
      +          "qr_files"
      +        ],
      +        "type": "object"
      +      },
      +      "campaign_id": {
      +        "type": "string"
      +      },
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "changed_since_previous": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "baseline": {
      +                  "description": "Present when this campaign has no earlier pack for this item_id.",
      +                  "enum": [
      +                    "first_version"
      +                  ],
      +                  "type": "string"
      +                },
      +                "changed": {
      +                  "type": "boolean"
      +                },
      +                "fields": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "changed"
      +              ],
      +              "type": "object"
      +            },
      +            "checks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "check": {
      +                    "type": "string"
      +                  },
      +                  "detail": {
      +                    "type": "string"
      +                  },
      +                  "passed": {
      +                    "type": [
      +                      "boolean",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "check",
      +                  "passed"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "exception": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "item_id": {
      +              "type": "string"
      +            },
      +            "qr_filename": {
      +              "type": "string"
      +            },
      +            "qr_filename_alias": {
      +              "type": "string"
      +            },
      +            "qr_revision": {
      +              "type": "number"
      +            },
      +            "qr_tracking_url": {
      +              "type": "string"
      +            },
      +            "returned_url": {
      +              "type": "string"
      +            },
      +            "short_url_ascii": {
      +              "type": "string"
      +            },
      +            "short_url_unicode": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "item_id",
      +            "status",
      +            "checks",
      +            "changed_since_previous"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ready_to_share": {
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "campaign_id",
      +      "ready_to_share",
      +      "items",
      +      "artifacts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "retry_after": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "error",
      +      "code",
      +      "message",
      +      "type",
      +      "title",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / items / description
      Previous value: -"Rows to ingest using the saved column mapping."New value: +"Rows to ingest using the saved column mapping. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request."
    • addedInput schema / properties / items / maxItems
      Added value: +10000
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and openWorld=true, so the safety profile is covered. Beyond that, the description adds two non-structured facts: applying to a new campaign mints new campaign/item identities, and a registered account is required — both materially affect how an agent sequences the call.

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 content is front-loaded and each sentence is short, but every sentence appears twice (Chinese then English), roughly doubling the length with no added information. The underlying message is efficient; the duplication is the main waste.

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 an output schema present and full schema description coverage, the description needn't explain returns or field formats. It covers modes, identity effects and the auth prerequisite, leaving only minor gaps (whether recovery is idempotent, what happens to an existing campaign on recovery) that the agent could use.

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 setup_id, items, mode and recovery_campaign_id, including limits and the recovery requirement. The description only reinforces the mode semantics ('new campaigns get new identities') and adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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 names a specific verb and resource ('apply a setup to a new campaign or explicit recovery') and adds the identity consequence ('new campaigns get new identities'), so the agent knows this is a creation/instantiation step rather than a read. It does not explicitly contrast with siblings like prepare_campaign_pack or save_campaign_setup, which keeps it short of a 5.

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?

It names the two supported situations (new campaign vs explicit recovery) and states the 'registered account required' prerequisite, which is real usage guidance. However, it never says when to prefer recovery over new_campaign, nor points to an alternative tool for preparing or retrying a pack, leaving the choice implicit.

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