Skip to main content
Glama

kv_incr

Atomically increment a KV key by delta. If the key is absent, treat it as 0. The value is stored as a JSON number and the new value is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
slugYes
deltaYes
owner_keyNoOptional. If omitted, defaults to the owner_key resolved from the connection's `Authorization: Bearer <owner_key>` header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly covers atomicity, the absent-key edge case (treated as 0), storage as a JSON number, and the return of the new value. It does not address permissions or error conditions for non-numeric values, but the core behavior is well disclosed.

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?

The description is a single sentence that front-loads the action and packs in atomicity, absent-key behavior, storage format, and return value. There is no filler; every clause 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?

The description gives enough for a simple tool: operation, edge case, and return value. However, 'slug' is a required parameter that is left undefined, and with no output schema or annotations an agent may not know how to populate it or what errors might occur. This is a notable completeness gap.

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

Parameters2/5

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

Schema description coverage is only 25% (only owner_key has a description). The description clarifies 'key' and 'delta' implicitly through 'increment a KV key by delta', but it never explains the required 'slug' parameter, leaving a significant gap. The description adds some value but does not compensate for the low schema coverage.

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

Purpose5/5

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

States a specific action, 'Atomically increment a KV key by delta', identifying the resource (KV key), the operation (increment), and a key attribute (atomic). It distinguishes from sibling tools like kv_get, kv_put, and kv_cas by its unique atomic increment semantics.

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 atomic increment semantics imply a use case, but the description does not explicitly say when to choose this tool over alternatives like kv_put or kv_cas. It provides no conditionals, exclusions, or pointers to sibling tools, leaving usage guidance to inference.

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