Skip to main content
Glama

Configure merchant NFTs (replaces)

insumer_configure_nfts
DestructiveIdempotent

Configure up to four NFT collections a merchant recognizes, assigning discount or recognition benefits and replacing existing settings. Owner-only; discounts must be whole numbers from 1 to 50.

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.

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": {
      "id": "<id>",
      "nftCollections": "<nftCollections>"
    },
    "name": "insumer_configure_nfts"
  }
}

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.24.0
    • changedInput schema / properties / nftCollections / items / properties / chainId / anyOf
      Previous 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"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "1",
      +      "50",
      +      "56",
      +      "8453",
      +      "43114",
      +      "137",
      +      "42161",
      +      "10",
      +      "88888",
      +      "1868",
      +      "98866",
      +      "480",
      +      "146",
      +      "100",
      +      "5000",
      +      "534352",
      +      "59144",
      +      "324",
      +      "42220",
      +      "204",
      +      "130",
      +      "57073",
      +      "1329",
      +      "80094",
      +      "33139",
      +      "4663",
      +      "167000",
      +      "2020",
      +      "88",
      +      "5042",
      +      "4217"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "const": "solana",
      +    "type": "string"
      +  },
      +  {
      +    "const": "xrpl",
      +    "type": "string"
      +  }
      +]
  2. 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."
  3. 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"
      +]
  4. 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"
      +}
  5. Addedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description gets credit for adding what annotations cannot: an owner-only authorization requirement, the hard cap of 4 collections, and the runtime refusal of decimal discounts. It does not, however, say what happens to discounts attached to removed collections beyond the schema's note on enabled flags.

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?

Five short sentences, each carrying a distinct operational fact (purpose, replace semantics, cap, discount validation, authorization), with the defining purpose front-loaded. No filler or hedging language.

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?

Output schema exists, so return values need no explanation, and annotations cover the safety profile; the description supplies the remaining essentials (owner-only auth, replace semantics, validation). A brief note on whether the operation succeeds atomically or partially would close the last 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 id, nftCollections, discount ranges, and per-collection fields in depth. The description mostly restates schema facts ('Max 4', 'whole numbers from 1 to 50'); only the 'decimals refused' runtime behavior adds marginal meaning, so baseline 3 applies.

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 names a specific verb ('Configure') and resource ('the NFT collections a merchant recognizes'), and qualifies the scope ('each granting a discount or recognition only'). It implicitly separates itself from insumer_configure_tokens by resource, but never names an alternative, so an agent must infer the NFT-vs-token split.

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?

'Owner only' supplies a precondition and the validate/replace semantics imply when the tool applies, but there is no explicit when-to-use versus when-not, and no routing to sibling tools like insumer_configure_tokens or insumer_list_tokens for reading current config.

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