Skip to main content
Glama

Prepare Returning Buyer Checkout

dynamoi_prepare_shop_rebuy_checkout
Idempotent

Preview the selected video, viewer locations and expected total. Use the quote market locale as locale. Confirm only after user approval, keeping the same clientRequestId and expectedTotal. Before opening unpaid Stripe Checkout, Dynamoi checks the current total and applies its existing buyer-offer and purchase-email rules. Creating checkout does not pay, create an order or launch a promotion. Reconcile uncertain outcomes with the original request ID and exact input.

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": {
      "locale": "<locale>",
      "tier": "<tier>",
      "youtubeUrl": "<youtubeUrl>",
      "expectedTotal": "<expectedTotal>",
      "shopSlug": "<shopSlug>",
      "clientRequestId": "<clientRequestId>",
      "artistId": "<artistId>"
    },
    "name": "dynamoi_prepare_shop_rebuy_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierYes
phaseNopreview
localeYes
artistIdYes
shopSlugYes
youtubeUrlYes
countryModeNo
countryCodesNo
contentLocaleNo
expectedTotalYes
returnToBuyerNo
clientRequestIdYes
customTargetViewsNo
campaignDurationDaysNo
extensionSourceShopOrderIdNo

Output Schema

NameRequiredDescriptionDefault
codeNo
dataNo
kindNo
fieldNo
statusYes
draftIdNo
messageNo
retryableNo
nextActionNo
failureStageNo
prerequisiteNo
screeningResultNo
retryAfterSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior5/5

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

Beyond the annotations it discloses the key behavioral traits: the checkout is unpaid, it does not create an order or launch a promotion, the current total is re-verified server-side, buyer-offer and purchase-email rules apply, and uncertain outcomes must be reconciled with the original request ID and exact input. This reinforces the idempotentHint=true and destructiveHint=false annotations rather than contradicting them, and adds real operational context.

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 most important constraints, the preview/confirm split and the non-payment guarantee, are front-loaded in a tight five-sentence block with no filler. The prose is dense and at times telegraphic, but every sentence carries a distinct constraint.

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

Completeness2/5

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

For a 15-parameter, 7-required mutation with nested objects, the description leaves most inputs undefined, including how tier, customTargetViews, campaignDurationDays and country targeting combine. The presence of an output schema excuses it from explaining return values, but the input-side gaps are too large to call this complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 15 parameters, so the description carries the full burden, but it only explains locale, clientRequestId, expectedTotal and the preview/confirm phase. The other parameters — tier, youtubeUrl, shopSlug, artistId, countryMode, countryCodes, contentLocale, returnToBuyer, customTargetViews, campaignDurationDays, extensionSourceShopOrderId — receive no meaning at all, and the nested expectedTotal object is only hinted at via 'expected total'.

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 states a specific action and resource: previewing a returning-buyer rebuy checkout over a selected video and viewer locations with an expected total, backed by unpaid Stripe Checkout. It does not explicitly distinguish itself from siblings like dynamoi_shop_create_checkout or dynamoi_quote_shop_rebuy_custom, so the agent must infer the boundary.

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 a concrete workflow: preview first, then confirm only after user approval while holding clientRequestId and expectedTotal constant, and it points to the quote tool implicitly via 'Use the quote market locale as locale'. It stops short of naming the alternative tools or stating when a non-rebuy checkout path should be chosen instead.

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.