Skip to main content
Glama

id-block

Monotonic id blocks: the next invoice or ticket numbers for a fleet of agents — Hands out strictly increasing integer blocks from a named sequence (1-1000 ids per call) so parallel agents never issue the same invoice, ticket or order number. Numbers are never reused. Not gapless: a block an agent reserves and never uses stays a gap, and if your call's payment fails after the block is written the same requestId returns that same block on retry. Legally gapless series must be a

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": {
      "op": "<op>",
      "sequence": "<sequence>"
    },
    "name": "id-block"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
countNoIds to reserve; default 1.
startNoFirst id of a new sequence; ignored once it exists. Default 1.
sequenceYesSequence name, e.g. invoice:2026.
tenantIdNoRequired for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant.
requestIdNoCaller-chosen id for this mutation. A retry with the same id and same input returns the stored response (24 h) instead of applying twice; the same id with different input is rejected. Send one on every mutation you may retry: without it a retry is applied again (fleet-memory record appends a duplicate; a repeated spend-ledger commit or release answers NO_HOLD because the first call already took effect).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses non-reuse, non-gaplessness with gaps from unused reservations, and the 24 h requestId idempotency window including the payment-failure retry case. It omits the return shape of a block and any rate or concurrency limits.

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

Conciseness2/5

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

The opening is well front-loaded, but the text terminates mid-sentence at 'must be a', leaving a dangling fragment that wastes space and breaks the final guidance point. Density is otherwise reasonable, but a truncated definition is a structural defect.

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?

For a six-parameter mutation tool with no annotations and no output schema, the description covers the critical invariants (monotonicity, non-reuse, idempotency) but leaves the response format unexplained and the gapless-alternative guidance truncated. An agent can call it correctly but not fully predict the result.

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 coverage is 83%, so the schema already documents count, start, sequence, tenantId and requestId. The description adds only marginal meaning, mainly restating the 1-1000 block size and the requestId retry behavior already spelled out in the schema; tenantId and start semantics are not elaborated at all.

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 verb and resource: 'Hands out strictly increasing integer blocks from a named sequence', with concrete examples (invoice, ticket, order numbers) and the reason (parallel agents never issue the same number). This is clearly distinguishable from sibling identifier/formatting tools like id-kind or tax-id-format.

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?

It implies when to use it (fleet of parallel agents needing unique sequential numbers) and hints at an exclusion ('Not gapless... Legally gapless series must be a'), but that exclusion is cut off mid-sentence so the agent never learns what to use instead. No alternative tool is named for the gapless case.

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