Skip to main content
Glama

Configure merchant NFTs (replaces)

insumer_configure_nfts
DestructiveIdempotent

Configure up to four NFT collections a merchant recognizes for discounts or recognition, replacing the existing NFT setup. Use whole-number discounts (1–50); owner only.

Instructions

Configure the NFT collections a merchant recognizes, each granting a discount or recognition only. Replaces the existing NFT configuration. Max 4 collections. Discounts are whole numbers from 1 to 50; a value with decimals is refused. Owner only.

Input Schema

NameRequiredDescriptionDefault
idYesMerchant ID
nftCollectionsYesNFT collection configurations (0-4)

Output Schema

NameRequiredDescriptionDefault
okNotrue when the API call succeeded
dataNoThe endpoint's payload: a signed attestation, trust profile, discount, merchant or token records
keysNoJWKS entries (insumer_jwks)
metaNoResponse metadata such as version and timestamp
errorNoError details when ok is false
itemsNoThe result when the endpoint returns a JSON array
messageNoA plain-text result (insumer_setup), or a message from the API

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.23.1
    • changedInput schema / properties / nftCollections / items / properties / contractAddress / description
      Previous value: -"NFT contract address. For XRPL: use r-address of the NFT issuer."New value: +"NFT contract address. For Solana: a verified collection address (any NFT in it counts) or one NFT's mint address. For XRPL: use r-address of the NFT issuer."
  2. Changed7 schema fields changedv1.17.1
    • addedInput schema / properties / nftCollections / items / properties / benefitType
      Added value: +{
      +  "description": "'discount' (the default) grants the discount below. 'recognition' means holders are recognized and no discount is granted.",
      +  "enum": [
      +    "discount",
      +    "recognition"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / nftCollections / items / properties / discount / description
      Previous value: -"Discount percentage (1-50)"New value: +"Discount percentage: a whole number from 1 to 50, no decimals. Required unless benefitType is 'recognition'."
    • addedInput schema / properties / nftCollections / items / properties / enabled
      Added value: +{
      +  "description": "true or false. false keeps the collection in the configuration but switched off. Leave it out for an enabled collection. When re-saving an existing configuration, carry each collection's enabled value through, or a collection that was switched off is switched back on.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / nftCollections / items / properties / taxon / description
      Previous value: -"XRPL NFT taxon for filtering by collection. Optional, XRPL only."New value: +"XRPL NFT taxon for filtering by collection: an integer from 0 to 4294967295. Optional, XRPL only."
    • addedInput schema / properties / nftCollections / items / properties / taxon / maximum
      Added value: +4294967295
    • addedInput schema / properties / nftCollections / items / properties / taxon / minimum
      Added value: +0
    • changedInput schema / properties / nftCollections / items / required
      Previous value: -[
      -  "name",
      -  "contractAddress",
      -  "chainId",
      -  "discount"
      -]New value: +[
      +  "name",
      +  "contractAddress",
      +  "chainId"
      +]
  3. Changed9 schema fields changedv1.16.0
    • addedInput schema / properties / id / maxLength
      Added value: +100
    • addedInput schema / properties / id / minLength
      Added value: +1
    • addedInput schema / properties / id / pattern
      Added value: +"^[a-zA-Z0-9_-]+$"
    • changedInput schema / properties / nftCollections / items / properties / chainId / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "1",
      -      "56",
      -      "8453",
      -      "43114",
      -      "137",
      -      "42161",
      -      "10",
      -      "88888",
      -      "1868",
      -      "98866",
      -      "480",
      -      "146",
      -      "100",
      -      "5000",
      -      "534352",
      -      "59144",
      -      "324",
      -      "81457",
      -      "42220",
      -      "1284",
      -      "204",
      -      "130",
      -      "57073",
      -      "1329",
      -      "80094",
      -      "33139",
      -      "167000",
      -      "2020",
      -      "1285",
      -      "88"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "const": "solana",
      -    "type": "string"
      -  },
      -  {
      -    "const": "xrpl",
      -    "type": "string"
      -  },
      -  {
      -    "const": "bitcoin",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "1",
      +      "50",
      +      "56",
      +      "8453",
      +      "43114",
      +      "137",
      +      "42161",
      +      "10",
      +      "88888",
      +      "1868",
      +      "98866",
      +      "480",
      +      "146",
      +      "100",
      +      "5000",
      +      "534352",
      +      "59144",
      +      "324",
      +      "81457",
      +      "42220",
      +      "204",
      +      "130",
      +      "57073",
      +      "1329",
      +      "80094",
      +      "33139",
      +      "4663",
      +      "167000",
      +      "2020",
      +      "88",
      +      "5042"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "const": "solana",
      +    "type": "string"
      +  },
      +  {
      +    "const": "xrpl",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / nftCollections / items / properties / chainId / description
      Previous value: -"Onboarding chain: any supported EVM chain ID (1, 56, 8453, 43114, 137, 42161, 10, 146, 100, 5000, 534352, 59144, 324, 81457, 42220, 1284, 204, 130, 57073, 1329, 80094, 33139, 88888, 1868, 98866, 480, 167000, 2020, 1285, 88), 'solana', 'xrpl', or 'bitcoin'"New value: +"Merchant onboarding chain: one of the EVM chain IDs listed in this schema, 'solana', or 'xrpl'. Merchant token and NFT configs are not available on Bitcoin, Tron, Stellar or Sui."
    • addedInput schema / properties / nftCollections / items / properties / contractAddress / maxLength
      Added value: +200
    • addedInput schema / properties / nftCollections / items / properties / contractAddress / minLength
      Added value: +1
    • addedInput schema / properties / nftCollections / items / properties / contractAddress / pattern
      Added value: +"^[A-Za-z0-9:_]+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {
      +      "description": "The endpoint's payload: a signed attestation, trust profile, discount, merchant or token records"
      +    },
      +    "error": {
      +      "description": "Error details when ok is false"
      +    },
      +    "items": {
      +      "description": "The result when the endpoint returns a JSON array",
      +      "items": {},
      +      "type": "array"
      +    },
      +    "keys": {
      +      "description": "JWKS entries (insumer_jwks)",
      +      "items": {},
      +      "type": "array"
      +    },
      +    "message": {
      +      "description": "A plain-text result (insumer_setup), or a message from the API"
      +    },
      +    "meta": {
      +      "description": "Response metadata such as version and timestamp"
      +    },
      +    "ok": {
      +      "description": "true when the API call succeeded",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Addedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the destructive replacement behavior, owner-only authorization requirement, maximum collection count, and discount validation rules including refusal of decimals. These are meaningful behavioral details for a destructive mutation tool.

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

Conciseness5/5

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

The description is front-loaded and compact. Each sentence carries relevant information: purpose, replacement behavior, limits, discount rules, and authorization.

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

Completeness5/5

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

Given the annotations, rich input schema, and output schema, the description covers what an agent needs to know before calling: replacement semantics, owner-only access, collection limit, and discount validation. No critical context is missing.

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?

Schema coverage is 100%, so the baseline is 3. The description adds useful semantic reinforcement around the nftCollections limit and discount validation, especially that discounts must be whole numbers from 1 to 50 and decimals are refused.

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: configuring merchant-recognized NFT collections. It also clarifies the scope with discount/recognition benefits and replacement behavior, which distinguishes it from generic configuration tools.

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 operational context: replaces the existing NFT configuration, owner-only, max 4 collections, and discount constraints. It does not explicitly name alternatives such as insumer_configure_tokens or insumer_configure_settings, but the resource-specific scope is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.