Skip to main content
Glama

Boatwork - Marine Businesses MCP

save_promo_code

Mutation/readOnly:false, script-tier/no-model-token action. Create or update a storefront promo / discount code customers can enter at checkout. Omit promoId to create; pass promoId from list_promo_codes to update. kind='percent' takes value 1..100; kind='fixed' takes value in cents (min 100 = $1.00). Storefront Pro is required.

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": {
      "code": "<code>",
      "kind": "<kind>",
      "value": "<value>",
      "proAccessToken": "<proAccessToken>"
    },
    "name": "save_promo_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesCode letters/numbers/dashes/underscores, e.g. "SUMMER15".
kindYes'percent' (1-100) or 'fixed' (cents, min 100).
valueYesWhole percent (1-100) for kind='percent', or cents (>=100) for kind='fixed'.
itemIdsNoRestrict to specific service itemIds; empty/omitted = all services.
promoIdNoExisting promo code id to update; omit to create a new code.
isActiveNofalse pauses the promo code.
expiresAtNoOptional ISO 8601 expiry timestamp; null = never expires.
maxRedemptionsNoMax total uses; null = unlimited.
proAccessTokenYesThe proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description discloses that this is a mutation, is script-tier/no-model-token, and requires Storefront Pro. However, it does not explain update overwrite semantics, whether changes are reversible, error behavior, or what the mutation returns.

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 compact and front-loads the mutation status, purpose, create/update rule, and prerequisite. The opening phrase about script-tier/no-model-token is somewhat jargon-heavy, but the rest is efficient and directly useful.

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 nine-parameter mutation with no annotations and no output schema, the description covers the essential calling context: create vs update, value semantics, promoId source, and Pro access requirement. It leaves return values and detailed update behavior unstated, but parameter documentation is fully handled by the schema.

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 all nine parameters and their constraints. The description reinforces the promoId create/update switch and kind/value formatting, but adds little meaning beyond what the schema already states.

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: create or update a storefront promo/discount code customers can enter at checkout. It also distinguishes the create and update modes through the promoId rule and points to list_promo_codes for update identifiers.

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?

It gives clear usage conditions: omit promoId to create, pass promoId from list_promo_codes to update, and Storefront Pro is required. It does not explicitly cover when not to use this versus delete_promo_code or other promo workflows, so it is strong but not exhaustive.

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