Skip to main content
Glama

Configure merchant tokens (replaces)

insumer_configure_tokens
DestructiveIdempotent

Configure merchant token discount tiers by setting own and partner tokens and replacing the existing configuration. Manage up to 8 tokens with whole-number discounts from 1 to 50; owner only.

Instructions

Configure merchant token discount tiers. Set own token and/or partner tokens. Replaces the existing token configuration. Max 8 tokens total. Tier 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>"
    },
    "name": "insumer_configure_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesMerchant ID
ownTokenNoMerchant's own token configuration, or null to remove
partnerTokensNoPartner token configurations

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 / ownToken / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "alsoOn": {
      -        "description": "Optional: the same token on other networks, up to 9 (EVM chains and Solana; not the XRP Ledger, not a native coin). The store decides which deployments count as the same token. Each network's balance is read in that token's own decimals there, the balances are added exactly, and the tier is awarded once. A read that fails on any listed network refuses the whole check (rpc_failure), never a partial total. When re-saving, carry each token's alsoOn through, or its other networks are removed.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "chainId": {
      -              "anyOf": [
      -                {
      -                  "exclusiveMinimum": 0,
      -                  "type": "integer"
      -                },
      -                {
      -                  "const": "solana",
      -                  "type": "string"
      -                }
      -              ],
      -              "description": "EVM chain ID, or 'solana'"
      -            },
      -            "contractAddress": {
      -              "description": "The same token's contract (EVM) or mint (Solana) on that network; not 'native'",
      -              "maxLength": 64,
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "chainId",
      -            "contractAddress"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 9,
      -        "type": "array"
      -      },
      -      "chainId": {
      -        "anyOf": [
      -          {
      -            "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"
      -          }
      -        ],
      -        "description": "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."
      -      },
      -      "contractAddress": {
      -        "description": "Token contract address. For XRPL: use r-address issuer for trust line tokens, or 'native' for XRP.",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "pattern": "^[A-Za-z0-9:_]+$",
      -        "type": "string"
      -      },
      -      "currency": {
      -        "description": "XRPL trust line currency code: a 3-character code (e.g. 'USD'), a token name of 1 to 20 printable ASCII characters (e.g. 'RLUSD'), or a 40-character hex code. Case-sensitive: send it exactly as the issuer created it. 'XRP' is the native coin and is not accepted here: use contractAddress 'native'. Required for XRPL trust line tokens.",
      -        "maxLength": 40,
      -        "minLength": 1,
      -        "pattern": "^[\\x20-\\x7E]+$",
      -        "type": "string"
      -      },
      -      "decimals": {
      -        "description": "Token decimals (0-18). Required: the merchant registry stores it with each token and rejects a config without it. 6 for USDC, 18 for most ERC-20s.",
      -        "maximum": 18,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "enabled": {
      -        "description": "true or false, never a string. false switches the own token off; leave it out or send true to keep it on.",
      -        "type": "boolean"
      -      },
      -      "logo": {
      -        "description": "Logo URL for the token, shown in the public directory (max 500 characters). Optional.",
      -        "maxLength": 500,
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Display name of the token, shown in the public directory (max 100 characters). Optional.",
      -        "maxLength": 100,
      -        "type": "string"
      -      },
      -      "symbol": {
      -        "description": "Token symbol, e.g. 'UNI'",
      -        "maxLength": 10,
      -        "type": "string"
      -      },
      -      "tiers": {
      -        "description": "1-4 discount tiers",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "discount": {
      -              "description": "Discount percentage: a whole number from 1 to 50, no decimals",
      -              "maximum": 50,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "description": "Tier name, e.g. 'Gold', 'Silver'",
      -              "maxLength": 30,
      -              "type": "string"
      -            },
      -            "threshold": {
      -              "description": "Minimum token balance for this tier",
      -              "exclusiveMinimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "threshold",
      -            "discount"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "symbol",
      -      "chainId",
      -      "contractAddress",
      -      "decimals",
      -      "tiers"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alsoOn": {
      +        "description": "Optional: the same token on other networks, up to 9 (EVM chains and Solana; not the XRP Ledger, not a native coin). The store decides which deployments count as the same token. Each network's balance is read in that token's own decimals there, the balances are added exactly, and the tier is awarded once. A read that fails on any listed network refuses the whole check (rpc_failure), never a partial total. When re-saving, carry each token's alsoOn through, or its other networks are removed.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "chainId": {
      +              "anyOf": [
      +                {
      +                  "exclusiveMinimum": 0,
      +                  "type": "integer"
      +                },
      +                {
      +                  "const": "solana",
      +                  "type": "string"
      +                }
      +              ],
      +              "description": "EVM chain ID, or 'solana'"
      +            },
      +            "contractAddress": {
      +              "description": "The same token's contract (EVM) or mint (Solana) on that network; not 'native'",
      +              "maxLength": 64,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "chainId",
      +            "contractAddress"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 9,
      +        "type": "array"
      +      },
      +      "chainId": {
      +        "anyOf": [
      +          {
      +            "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"
      +          }
      +        ],
      +        "description": "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."
      +      },
      +      "contractAddress": {
      +        "description": "Token contract address. For XRPL: use r-address issuer for trust line tokens, or 'native' for XRP.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9:_]+$",
      +        "type": "string"
      +      },
      +      "currency": {
      +        "description": "XRPL trust line currency code: a 3-character code (e.g. 'USD'), a token name of 1 to 20 printable ASCII characters (e.g. 'RLUSD'), or a 40-character hex code. Case-sensitive: send it exactly as the issuer created it. 'XRP' is the native coin and is not accepted here: use contractAddress 'native'. Required for XRPL trust line tokens.",
      +        "maxLength": 40,
      +        "minLength": 1,
      +        "pattern": "^[\\x20-\\x7E]+$",
      +        "type": "string"
      +      },
      +      "decimals": {
      +        "description": "Token decimals (0-18). Required: the merchant registry stores it with each token and rejects a config without it. 6 for USDC, 18 for most ERC-20s.",
      +        "maximum": 18,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "enabled": {
      +        "description": "true or false, never a string. false switches the own token off; leave it out or send true to keep it on.",
      +        "type": "boolean"
      +      },
      +      "logo": {
      +        "description": "Logo URL for the token, shown in the public directory (max 500 characters). Optional.",
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name of the token, shown in the public directory (max 100 characters). Optional.",
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "symbol": {
      +        "description": "Token symbol, e.g. 'UNI'",
      +        "maxLength": 10,
      +        "type": "string"
      +      },
      +      "tiers": {
      +        "description": "1-4 discount tiers",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "discount": {
      +              "description": "Discount percentage: a whole number from 1 to 50, no decimals",
      +              "maximum": 50,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "description": "Tier name, e.g. 'Gold', 'Silver'",
      +              "maxLength": 30,
      +              "type": "string"
      +            },
      +            "threshold": {
      +              "description": "Minimum token balance for this tier",
      +              "exclusiveMinimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "threshold",
      +            "discount"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "symbol",
      +      "chainId",
      +      "contractAddress",
      +      "decimals",
      +      "tiers"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed6 schema fields changedv1.17.1
    • changedInput schema / properties / ownToken / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "chainId": {
      -        "anyOf": [
      -          {
      -            "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"
      -          }
      -        ],
      -        "description": "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."
      -      },
      -      "contractAddress": {
      -        "description": "Token contract address. For XRPL: use r-address issuer for trust line tokens, or 'native' for XRP.",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "pattern": "^[A-Za-z0-9:_]+$",
      -        "type": "string"
      -      },
      -      "currency": {
      -        "description": "XRPL trust line currency code (e.g. 'RLUSD', 'USDC', or 'USD'). Required for XRPL trust line tokens. Standard codes ≤ 3 chars; longer names like 'RLUSD' are auto hex-encoded by the API.",
      -        "maxLength": 40,
      -        "pattern": "^[A-Za-z0-9]+$",
      -        "type": "string"
      -      },
      -      "decimals": {
      -        "description": "Token decimals (0-18). Required: the merchant registry stores it with each token and rejects a config without it. 6 for USDC, 18 for most ERC-20s.",
      -        "maximum": 18,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "symbol": {
      -        "description": "Token symbol, e.g. 'UNI'",
      -        "maxLength": 10,
      -        "type": "string"
      -      },
      -      "tiers": {
      -        "description": "1-4 discount tiers",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "discount": {
      -              "description": "Discount percentage (1-50)",
      -              "maximum": 50,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "description": "Tier name, e.g. 'Gold', 'Silver'",
      -              "maxLength": 30,
      -              "type": "string"
      -            },
      -            "threshold": {
      -              "description": "Minimum token balance for this tier",
      -              "exclusiveMinimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "threshold",
      -            "discount"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "symbol",
      -      "chainId",
      -      "contractAddress",
      -      "decimals",
      -      "tiers"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alsoOn": {
      +        "description": "Optional: the same token on other networks, up to 9 (EVM chains and Solana; not the XRP Ledger, not a native coin). The store decides which deployments count as the same token. Each network's balance is read in that token's own decimals there, the balances are added exactly, and the tier is awarded once. A read that fails on any listed network refuses the whole check (rpc_failure), never a partial total. When re-saving, carry each token's alsoOn through, or its other networks are removed.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "chainId": {
      +              "anyOf": [
      +                {
      +                  "exclusiveMinimum": 0,
      +                  "type": "integer"
      +                },
      +                {
      +                  "const": "solana",
      +                  "type": "string"
      +                }
      +              ],
      +              "description": "EVM chain ID, or 'solana'"
      +            },
      +            "contractAddress": {
      +              "description": "The same token's contract (EVM) or mint (Solana) on that network; not 'native'",
      +              "maxLength": 64,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "chainId",
      +            "contractAddress"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 9,
      +        "type": "array"
      +      },
      +      "chainId": {
      +        "anyOf": [
      +          {
      +            "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"
      +          }
      +        ],
      +        "description": "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."
      +      },
      +      "contractAddress": {
      +        "description": "Token contract address. For XRPL: use r-address issuer for trust line tokens, or 'native' for XRP.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9:_]+$",
      +        "type": "string"
      +      },
      +      "currency": {
      +        "description": "XRPL trust line currency code: a 3-character code (e.g. 'USD'), a token name of 1 to 20 printable ASCII characters (e.g. 'RLUSD'), or a 40-character hex code. Case-sensitive: send it exactly as the issuer created it. 'XRP' is the native coin and is not accepted here: use contractAddress 'native'. Required for XRPL trust line tokens.",
      +        "maxLength": 40,
      +        "minLength": 1,
      +        "pattern": "^[\\x20-\\x7E]+$",
      +        "type": "string"
      +      },
      +      "decimals": {
      +        "description": "Token decimals (0-18). Required: the merchant registry stores it with each token and rejects a config without it. 6 for USDC, 18 for most ERC-20s.",
      +        "maximum": 18,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "enabled": {
      +        "description": "true or false, never a string. false switches the own token off; leave it out or send true to keep it on.",
      +        "type": "boolean"
      +      },
      +      "logo": {
      +        "description": "Logo URL for the token, shown in the public directory (max 500 characters). Optional.",
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name of the token, shown in the public directory (max 100 characters). Optional.",
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "symbol": {
      +        "description": "Token symbol, e.g. 'UNI'",
      +        "maxLength": 10,
      +        "type": "string"
      +      },
      +      "tiers": {
      +        "description": "1-4 discount tiers",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "discount": {
      +              "description": "Discount percentage: a whole number from 1 to 50, no decimals",
      +              "maximum": 50,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "description": "Tier name, e.g. 'Gold', 'Silver'",
      +              "maxLength": 30,
      +              "type": "string"
      +            },
      +            "threshold": {
      +              "description": "Minimum token balance for this tier",
      +              "exclusiveMinimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "threshold",
      +            "discount"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "symbol",
      +      "chainId",
      +      "contractAddress",
      +      "decimals",
      +      "tiers"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / partnerTokens / items / $ref
      Removed value: -"#/properties/ownToken/anyOf/0"
    • addedInput schema / properties / partnerTokens / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / partnerTokens / items / properties
      Added value: +{
      +  "alsoOn": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/alsoOn"
      +  },
      +  "chainId": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/chainId"
      +  },
      +  "contractAddress": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/contractAddress"
      +  },
      +  "currency": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/currency"
      +  },
      +  "decimals": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/decimals"
      +  },
      +  "logo": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/logo"
      +  },
      +  "name": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/name"
      +  },
      +  "symbol": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/symbol"
      +  },
      +  "tiers": {
      +    "$ref": "#/properties/ownToken/anyOf/0/properties/tiers"
      +  }
      +}
    • addedInput schema / properties / partnerTokens / items / required
      Added value: +[
      +  "symbol",
      +  "chainId",
      +  "contractAddress",
      +  "decimals",
      +  "tiers"
      +]
    • addedInput schema / properties / partnerTokens / items / type
      Added value: +"object"
  3. Changed6 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 / ownToken / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "chainId": {
      -        "anyOf": [
      -          {
      -            "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"
      -          }
      -        ],
      -        "description": "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'"
      -      },
      -      "contractAddress": {
      -        "description": "Token contract address. For XRPL: use r-address issuer for trust line tokens, or 'native' for XRP.",
      -        "type": "string"
      -      },
      -      "currency": {
      -        "description": "XRPL trust line currency code (e.g. 'RLUSD', 'USDC', or 'USD'). Required for XRPL trust line tokens. Standard codes ≤ 3 chars; longer names like 'RLUSD' are auto hex-encoded by the API.",
      -        "type": "string"
      -      },
      -      "decimals": {
      -        "description": "Token decimals (0-18, default 18)",
      -        "maximum": 18,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "symbol": {
      -        "description": "Token symbol, e.g. 'UNI'",
      -        "maxLength": 10,
      -        "type": "string"
      -      },
      -      "tiers": {
      -        "description": "1-4 discount tiers",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "discount": {
      -              "description": "Discount percentage (1-50)",
      -              "maximum": 50,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "name": {
      -              "description": "Tier name, e.g. 'Gold', 'Silver'",
      -              "maxLength": 30,
      -              "type": "string"
      -            },
      -            "threshold": {
      -              "description": "Minimum token balance for this tier",
      -              "exclusiveMinimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "threshold",
      -            "discount"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "symbol",
      -      "chainId",
      -      "contractAddress",
      -      "tiers"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "chainId": {
      +        "anyOf": [
      +          {
      +            "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"
      +          }
      +        ],
      +        "description": "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."
      +      },
      +      "contractAddress": {
      +        "description": "Token contract address. For XRPL: use r-address issuer for trust line tokens, or 'native' for XRP.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9:_]+$",
      +        "type": "string"
      +      },
      +      "currency": {
      +        "description": "XRPL trust line currency code (e.g. 'RLUSD', 'USDC', or 'USD'). Required for XRPL trust line tokens. Standard codes ≤ 3 chars; longer names like 'RLUSD' are auto hex-encoded by the API.",
      +        "maxLength": 40,
      +        "pattern": "^[A-Za-z0-9]+$",
      +        "type": "string"
      +      },
      +      "decimals": {
      +        "description": "Token decimals (0-18). Required: the merchant registry stores it with each token and rejects a config without it. 6 for USDC, 18 for most ERC-20s.",
      +        "maximum": 18,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "symbol": {
      +        "description": "Token symbol, e.g. 'UNI'",
      +        "maxLength": 10,
      +        "type": "string"
      +      },
      +      "tiers": {
      +        "description": "1-4 discount tiers",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "discount": {
      +              "description": "Discount percentage (1-50)",
      +              "maximum": 50,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "name": {
      +              "description": "Tier name, e.g. 'Gold', 'Silver'",
      +              "maxLength": 30,
      +              "type": "string"
      +            },
      +            "threshold": {
      +              "description": "Minimum token balance for this tier",
      +              "exclusiveMinimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "threshold",
      +            "discount"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "symbol",
      +      "chainId",
      +      "contractAddress",
      +      "decimals",
      +      "tiers"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / partnerTokens / maxItems
      Added value: +8
    • 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.4/5.0
Behavior4/5

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

Adds real context beyond the annotations: it is a full replace of existing configuration, capped at 8 tokens, requires owner privileges, and rejects non-integer discounts at runtime. The destructive annotation is reinforced rather than contradicted, though failure behavior on a single bad tier is not spelled out.

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, front-loaded with purpose and replacement semantics, then constraints, then the permission requirement. No sentence is redundant.

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 destructive, owner-gated mutation with an output schema and full schema coverage, the description covers purpose, replacement, limits, and auth. Only the behavior on a partially invalid payload (whole-config refusal vs partial apply) is left implicit.

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, but the description adds runtime meaning beyond the schema: the 8-token total cap spanning own plus partner tokens and the refusal of decimal discounts. It does not touch the alsoOn carry-through caveat, which lives only in the schema.

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 and resource ('Configure merchant token discount tiers'), scopes it ('own token and/or partner tokens'), and names the replacement semantics. An agent can tell this apart from the read-only insumer_list_tokens sibling 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 Guidelines4/5

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

Gives clear operating conditions: replaces the existing configuration, max 8 tokens total, owner only. It does not explicitly name an alternative tool or say when not to use it, so it falls short of full when/when-not guidance.

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