Skip to main content
Glama

Edit promotion

update_promotion
DestructiveIdempotent

Apply narrow ordered changes to a promotion, including public promotions. Read its schema first. Omitted values survive; a theme replaces all colors. Changes affect the public promotion immediately. Changes to the prize, Official Rules, or start/end dates of a promotion that is currently accepting entries are rejected unless user_confirmed_live_change is true; entrants may have relied on the published terms. Retries must keep their key and payload.

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": {
      "promotion_id": "<promotion_id>",
      "expected_revision": "<expected_revision>",
      "operations": "<operations>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "update_promotion"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYesBatch related changes into one ordered atomic update, up to 50 operations. Remove takes singular id; order takes every active ids value. Discover the target section for allowed values.
promotion_idYes
response_modeNoSummary returns actual saved changed values and created/removed IDs; minimal omits changed values; full includes saved configuration subject to pagination limits. All include advisory readiness. Keep the original payload for exact retries.summary
idempotency_keyYesUnique to this operation on this connection. Identical requests replay for seven days or until the connection expires, whichever is sooner. Expired keys are rejected. After reconnecting, read current state before a new operation; retry keys do not carry across connections.
expected_revisionYes
user_confirmed_live_changeNoSet to true only after the user has seen the exact prize, Official Rules or schedule change and explicitly approved it. Required for those sections while the promotion is accepting entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_confirmed_live_change
      Added value: +{
      +  "description": "Set to true only after the user has seen the exact prize, Official Rules or schedule change and explicitly approved it. Required for those sections while the promotion is accepting entries.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "set",
      -        "type": "string"
      -      },
      -      "section": {
      -        "enum": [
      -          "content",
      -          "rules",
      -          "security",
      -          "colors",
      -          "fonts",
      -          "layout",
      -          "theme",
      -          "assets",
      -          "schedule",
      -          "custom_css",
      -          "design"
      -        ],
      -        "type": "string"
      -      },
      -      "values": {
      -        "additionalProperties": true,
      -        "maxProperties": 30,
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "values"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "set",
      -        "type": "string"
      -      },
      -      "id": {
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "section": {
      -        "enum": [
      -          "fields",
      -          "prizes",
      -          "bonus_actions"
      -        ],
      -        "type": "string"
      -      },
      -      "values": {
      -        "additionalProperties": true,
      -        "maxProperties": 30,
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "id",
      -      "values"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "add",
      -        "type": "string"
      -      },
      -      "section": {
      -        "enum": [
      -          "fields",
      -          "bonus_actions"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "maxLength": 40,
      -        "type": "string"
      -      },
      -      "values": {
      -        "additionalProperties": true,
      -        "maxProperties": 30,
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "add",
      -        "type": "string"
      -      },
      -      "section": {
      -        "enum": [
      -          "prizes"
      -        ],
      -        "type": "string"
      -      },
      -      "values": {
      -        "additionalProperties": true,
      -        "maxProperties": 30,
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "add",
      -        "type": "string"
      -      },
      -      "section": {
      -        "enum": [
      -          "assets"
      -        ],
      -        "type": "string"
      -      },
      -      "values": {
      -        "additionalProperties": true,
      -        "maxProperties": 30,
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "values"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "remove",
      -        "type": "string"
      -      },
      -      "id": {
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "section": {
      -        "enum": [
      -          "fields",
      -          "prizes",
      -          "bonus_actions",
      -          "assets"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "order",
      -        "type": "string"
      -      },
      -      "ids": {
      -        "items": {
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "maxItems": 50,
      -        "type": "array",
      -        "uniqueItems": true
      -      },
      -      "section": {
      -        "enum": [
      -          "fields",
      -          "bonus_actions",
      -          "assets"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "ids"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "action": {
      -        "const": "reset",
      -        "type": "string"
      -      },
      -      "section": {
      -        "enum": [
      -          "colors",
      -          "fonts",
      -          "layout"
      -        ],
      -        "type": "string"
      -      },
      -      "values": {
      -        "additionalProperties": true,
      -        "maxProperties": 30,
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "section",
      -      "action",
      -      "values"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "set",
      +        "type": "string"
      +      },
      +      "section": {
      +        "enum": [
      +          "content",
      +          "rules",
      +          "security",
      +          "colors",
      +          "fonts",
      +          "layout",
      +          "theme",
      +          "assets",
      +          "schedule",
      +          "custom_css",
      +          "design",
      +          "quiz"
      +        ],
      +        "type": "string"
      +      },
      +      "values": {
      +        "additionalProperties": true,
      +        "maxProperties": 30,
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "values"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "set",
      +        "type": "string"
      +      },
      +      "id": {
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "section": {
      +        "enum": [
      +          "fields",
      +          "prizes",
      +          "bonus_actions",
      +          "quiz_results"
      +        ],
      +        "type": "string"
      +      },
      +      "values": {
      +        "additionalProperties": true,
      +        "maxProperties": 30,
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "id",
      +      "values"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "add",
      +        "type": "string"
      +      },
      +      "section": {
      +        "enum": [
      +          "fields",
      +          "bonus_actions"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "maxLength": 40,
      +        "type": "string"
      +      },
      +      "values": {
      +        "additionalProperties": true,
      +        "maxProperties": 30,
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "add",
      +        "type": "string"
      +      },
      +      "section": {
      +        "enum": [
      +          "prizes",
      +          "quiz_results"
      +        ],
      +        "type": "string"
      +      },
      +      "values": {
      +        "additionalProperties": true,
      +        "maxProperties": 30,
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "add",
      +        "type": "string"
      +      },
      +      "section": {
      +        "enum": [
      +          "assets"
      +        ],
      +        "type": "string"
      +      },
      +      "values": {
      +        "additionalProperties": true,
      +        "maxProperties": 30,
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "values"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "remove",
      +        "type": "string"
      +      },
      +      "id": {
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "section": {
      +        "enum": [
      +          "fields",
      +          "prizes",
      +          "bonus_actions",
      +          "assets",
      +          "quiz_results"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "order",
      +        "type": "string"
      +      },
      +      "ids": {
      +        "items": {
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "maxItems": 50,
      +        "type": "array",
      +        "uniqueItems": true
      +      },
      +      "section": {
      +        "enum": [
      +          "fields",
      +          "bonus_actions",
      +          "assets",
      +          "quiz_results"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "ids"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "action": {
      +        "const": "reset",
      +        "type": "string"
      +      },
      +      "section": {
      +        "enum": [
      +          "colors",
      +          "fonts",
      +          "layout"
      +        ],
      +        "type": "string"
      +      },
      +      "values": {
      +        "additionalProperties": true,
      +        "maxProperties": 30,
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "action",
      +      "values"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent annotations: it warns that changes hit the public-facing promotion immediately, that prize/Official Rules/schedule edits are rejected while entries are open unless user_confirmed_live_change is true (with the entrant-reliance rationale), and that retries must reuse key and payload. That is exactly the operational context an agent needs before a destructive write.

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-loads the core action and the schema-first instruction, and every clause carries operational weight (mutation scope, live-edit rejection, retry rules). It is a single dense block with no formatting breaks, which slightly hurts scanability for a tool with this many constraints.

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?

For a destructive, 6-parameter, no-output-schema mutation tool, the description covers immediate effects, guardrails, and idempotency well. The notable omission is expected_revision semantics, which matters for a tool that can silently fail or conflict on concurrent edits.

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?

Adds real meaning for user_confirmed_live_change, response_mode tradeoffs, idempotency_key replay/reconnect behavior, and the operations batching semantics. However, expected_revision — a required parameter with no schema description — is never explained in the description, leaving the concurrency precondition undocumented.

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?

States a specific verb and resource ('apply narrow ordered changes to a promotion') plus scope ('including public promotions'), which cleanly separates it from create_promotion, duplicate_promotion, and preview_promotion. An agent knows immediately this is a batched mutation on an existing promotion.

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?

'Read its schema first' directs the agent to fetch allowed values before calling, and 'Omitted values survive; a theme replaces all colors' sets expectations for how to compose operations. It does not explicitly route the agent to validate_promotion or preview_promotion as pre-flight alternatives, so it stops short of naming when-not-to-call.

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