Skip to main content
Glama

Create promotion

create_promotion
DestructiveIdempotent

Create an explicitly selected available promotion type; surveys default to no email or identifier field. Purchase integration and instant-win allocation require dashboard setup. Uses normal dashboard availability and optional structured edits. Its schedule controls entry collection. No AI generation. If cached discovery lacks type, use the first content/set operation with values.type. Missing types fail without creating anything. Reuse the same idempotency key for retries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
typeNoExplicit promotion type. Alternatively use values.type in the first content/set operation for cached clients. No implicit default.
scheduleYes
operationsNoBatch 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.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +  }
      +]
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true and openWorldHint=true, covering the safety profile. The description adds useful failure semantics ("Missing types fail without creating anything") and idempotency guidance ("Reuse the same idempotency key for retries"), plus survey default behavior, but does not disclose permission requirements or creation side effects beyond what annotations imply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A run-on block of loosely related sentences, several of which are cryptic ("Uses normal dashboard availability and optional structured edits", "No AI generation"). Key routing/failure info is buried mid-paragraph rather than front-loaded, wasting the reader's attention.

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

Completeness3/5

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

For a complex tool (6 params, nested 50-op batch, no output schema), the description covers failure and type-discovery edge cases but omits what a successful creation returns and how the operations batch interacts with creation. The rich schema and response_mode parameter carry much of the load, so the description is adequate but not complete.

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 67%, so much is already documented in the schema. The description adds only marginal meaning: the values.type fallback for cached clients and idempotency-key reuse. It gives no guidance on the operations structure or schedule semantics beyond what the schema already states.

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?

States a specific verb and resource ("Create an ... available promotion type") and gives type-specific behavior for surveys. It is distinguishable from duplicate/update/validate siblings, but the purpose is slightly muddled by discursive asides like "Uses normal dashboard availability and optional structured edits."

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?

Provides conditional context: purchase integration and instant-win allocation require dashboard setup, and if cached discovery lacks a type, use the first content/set operation with values.type. However, it never explicitly contrasts with sibling tools (duplicate_promotion, validate_promotion) or states when-not to use this tool.

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