getCounter
Fetches a stored integer counter by id, optionally incrementing it with hit or setting it to a given value. Using a new id creates a new counter.
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": "getCounter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID to specify the counter. Use a new id to create a new counter. | |
| hit | No | Whether to increase the count by 1. If used, must be set to true. | |
| value | No | Set the count to a specific integer value. Setting the value to 0 resets the counter. |