x402_set_pricing
Configure pricing for an existing endpoint with fixed, dynamic, tiered, or resource-based strategies. Set base price, caps, and tiers to control costs.
Instructions
Configure pricing for an existing endpoint. Supports fixed, dynamic, tiered, and resource-based pricing.
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": {
"path": "<path>",
"pricingType": "<pricingType>",
"basePrice": "<basePrice>"
},
"name": "x402_set_pricing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Endpoint path to configure | |
| perKB | No | Additional price per KB response (for dynamic pricing) | |
| tiers | No | Price tiers (for tiered pricing) | |
| maxPrice | No | Maximum price cap | |
| minPrice | No | Minimum price floor | |
| perToken | No | Additional price per AI token (for dynamic pricing) | |
| basePrice | Yes | Base price in USD | |
| pricingType | Yes | Type of pricing strategy |