Skip to main content
Glama

Increment counter

increment_counter

Atomically increment a signed 64-bit counter; optional clamps and bounded history. Never retry blindly.

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": {
      "key": "<key>"
    },
    "name": "increment_counter"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNo
keyYes
historyNo
maximumNo
minimumNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare non-read-only, non-idempotent, non-destructive, so the safety profile is known; the description adds genuinely new context by stating the operation is atomic and warning that blind retries are unsafe (the practical consequence of idempotentHint=false). It leaves gaps, though: it doesn't say whether a clamp violation errors or saturates, nor how large the 'bounded' history is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact clauses plus a one-line warning, with the core operation front-loaded and nothing redundant. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters, no output schema, and zero schema description coverage, the description should say more about return value (presumably the new counter value) and about what happens when a clamp is hit or a key is missing. As written it covers the headline behavior but not the edge cases an agent needs to call it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden; it loosely touches every meaningful parameter — 'signed 64-bit' implies the by delta range, 'optional clamps' maps to minimum/maximum, 'bounded history' maps to history. However, it never explains clamp semantics (reject vs saturate), what the history bounds are, or what key identifies, leaving the critical behaviors undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Atomically increment a signed 64-bit counter') plus the supporting features (clamps, bounded history). An agent can distinguish this from siblings like decrement_counter or get_counter_history by the operation itself, though the description never names those alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The closing 'Never retry blindly' gives real operational guidance about retry behavior, but there is no explicit when-to-use vs when-not framing and no mention of get_counter_history for reading values or decrement_counter for the inverse direction. Usage is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources