Record usage
pmitz_record_usageRecords consumed units for a subject. Refused when a limit would be exceeded. It writes to Pmitz directly, so it does not show whether an application records usage itself. Acts on one Pmitz sandbox.
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": {
"sandbox": "<sandbox>",
"groupId": "<groupId>",
"productId": "<productId>",
"featureId": "<featureId>",
"units": "<units>"
},
"name": "pmitz_record_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | Units per limit ID, for example {"monthly-exports": 1}. Each value is a positive integer. | |
| groupId | Yes | Identifier of the subscription, user or directory group. | |
| sandbox | Yes | The sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_…. | |
| featureId | Yes | Feature ID inside that product. | |
| groupType | No | Kind of subject. Use "subscriptions" when access depends on a plan. | |
| productId | Yes | Product ID from the catalog. |