create_meter
Define usage dimensions for billing products by specifying unit pricing and measurement details to track consumption.
Instructions
Create a meter (usage dimension) for a product
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": {
"productId": "<productId>",
"name": "<name>",
"displayName": "<displayName>",
"unit": "<unit>",
"unitPrice": "<unitPrice>"
},
"name": "create_meter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | The product ID | |
| name | Yes | Meter identifier (e.g. 'api_calls', 'tokens') | |
| displayName | Yes | Human-readable meter name | |
| unit | Yes | Unit of measurement (e.g. 'request', 'token') | |
| unitPrice | Yes | Price per unit (e.g. '0.001') |