Skip to main content
Glama

Create a product

swop_create_product

Start selling something in one call: creates a product that people can buy on the linked account's Swop SmartSite and AI agents can buy in USDC over x402, with no store setup, payment processor, or verification needed. To change an existing product use swop_update_product instead. name, description and image are all REQUIRED by the backend. Confirm name and price with the user before creating. Then call swop_feature_product to show it on the SmartSite and swop_get_product_link to share it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesProduct name
imageYesPrimary product image URL (required)
nftTypeNoFine-grained type; overrides productType. phygital/menu are physical, the rest digital
keywordsNoSearch keywords
priceUsdYesPrice in USD (settles in USDC)
variantsNoBuyer-selectable options. Replaces the existing set when given.
mintLimitNoInventory available, default 1
descriptionYesProduct description (required)
extraImagesNoAdditional image URLs, shown after the primary one
productTypeNophysical (ships), digital (default), or in_person_checkout
shippingCostNoFlat shipping cost in USD
requiresShippingNoPhysical goods: collect a shipping address
royaltyRecipientNoWallet receiving royalties
royaltyPercentageNoResale royalty percent
digitalDeliveryNoteNoDigital goods: what the buyer receives after purchase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / description / description
      Previous value: -"Product description"New value: +"Product description (required)"
    • addedInput schema / properties / description / minLength
      Added value: +1
    • addedInput schema / properties / digitalDeliveryNote
      Added value: +{
      +  "description": "Digital goods: what the buyer receives after purchase",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / extraImages
      Added value: +{
      +  "description": "Additional image URLs, shown after the primary one",
      +  "items": {
      +    "format": "uri",
      +    "type": "string"
      +  },
      +  "maxItems": 9,
      +  "type": "array"
      +}
    • changedInput schema / properties / image / description
      Previous value: -"Product image URL"New value: +"Primary product image URL (required)"
    • addedInput schema / properties / keywords
      Added value: +{
      +  "description": "Search keywords",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • changedInput schema / properties / mintLimit / description
      Previous value: -"Inventory limit, default 1"New value: +"Inventory available, default 1"
    • addedInput schema / properties / nftType
      Added value: +{
      +  "description": "Fine-grained type; overrides productType. phygital/menu are physical, the rest digital",
      +  "enum": [
      +    "phygital",
      +    "menu",
      +    "collectible",
      +    "subscription",
      +    "membership",
      +    "coupon"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / productType / description
      Previous value: -"collectible (default), phygital, membership, coupon"New value: +"physical (ships), digital (default), or in_person_checkout"
    • addedInput schema / properties / productType / enum
      Added value: +[
      +  "physical",
      +  "digital",
      +  "in_person_checkout"
      +]
    • addedInput schema / properties / requiresShipping
      Added value: +{
      +  "description": "Physical goods: collect a shipping address",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / royaltyPercentage
      Added value: +{
      +  "description": "Resale royalty percent",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / royaltyRecipient
      Added value: +{
      +  "description": "Wallet receiving royalties",
      +  "type": "string"
      +}
    • addedInput schema / properties / shippingCost
      Added value: +{
      +  "description": "Flat shipping cost in USD",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / variants
      Added value: +{
      +  "description": "Buyer-selectable options. Replaces the existing set when given.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "Variant group, e.g. \"Color\" or \"Size\"",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "options": {
      +        "description": "Choices, e.g. [\"Black\",\"White\"]",
      +        "items": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "options"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "priceUsd"
      -]New value: +[
      +  "name",
      +  "description",
      +  "priceUsd",
      +  "image"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, non-destructive, non-open-world write. The description adds real behavioral context beyond them: no store setup, payment processor or verification is required, and settlement happens in USDC over x402. It does not cover irreversibility or authentication requirements, which keeps it short of a 5.

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-loaded with the value proposition, then the alternative, then required fields, then the follow-up workflow. Every sentence carries information. The opening sentence is dense but not padded.

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 15-parameter creation tool with no output schema and no nested objects, the description supplies the workflow context an agent needs (required fields, user-confirmation step, next calls) without explaining return values, which is correct given no output schema exists. It does not address failure modes or idempotency, a minor gap.

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 15 parameters including enums and constraints. The description only re-emphasizes that name, description and image are backend-required — information the schema's `required` array already conveys — so it adds little semantic value over the structured data. Baseline 3 applies.

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+resource ("creates a product") and immediately scopes it to the two channels it serves (SmartSite buyers and AI agents over x402). It explicitly names the sibling swop_update_product as the not-this tool, so an agent can distinguish it without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives both an exclusion ("To change an existing product use swop_update_product instead") and a prerequisite procedure ("Confirm name and price with the user before creating"), plus the correct downstream follow-ups (swop_feature_product, swop_get_product_link). This is a complete routing story.

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.