counter_increment
Increment a counter by a specified amount, creating it if needed. Track iterations, processed items, or any counting task.
Instructions
Increment a counter by a specified amount (default: 1). Creates the counter if it doesn't exist. Use this to track iterations, processed items, or any counting task.
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": {
"counter_id": "<counter_id>"
},
"name": "counter_increment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount to increment by (default: 1). Can be negative to decrement. | |
| counter_id | Yes | Unique identifier for the counter (e.g., 'files_processed', 'iterations', 'step1') |