Increment Counter
counter_nextAtomically increment a named counter and return the new value. Guaranteed unique, monotonically increasing integers across concurrent stateless runs - use it for sequence numbers, run IDs, or once-only ordering that agents cannot produce on their own. Starts at 1 on first call. Counters persist indefinitely.
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": {
"namespace": "<namespace>"
},
"name": "counter_next"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Lock or counter name within the namespace. | |
| name | No | Lock or counter name within the namespace. | |
| namespace | Yes | Your private namespace. Pick a long unique string; it acts as the access key. |