Skip to main content
Glama

Record usage events

record_usage_events
Idempotent

Record 1-100 usage events in one all-or-nothing batch (POST /api/v1/usage). Every event MUST carry its own idempotency_key; retrying with the same keys is safe (results say created / duplicate / conflict). Needs your API key.

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": {
      "events": "<events>"
    },
    "name": "record_usage_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), the description adds meaningful behavior: the batch is all-or-nothing, every event needs its own idempotency_key, retries with identical keys are safe, and outcomes are reported as created / duplicate / conflict. It also discloses the auth requirement ('Needs your API key'). This is exactly the kind of context annotations cannot convey.

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?

Three compact sentences, each carrying distinct information: scope/atomicity, idempotency contract, and auth. The most operationally critical constraint (idempotency_key) is front-loaded in the second sentence with no filler.

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

Completeness4/5

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

For a single-parameter, no-output-schema ingestion tool, the definition covers the essentials: batch limits, atomicity, idempotency, retry safety, result statuses, and auth. It stops short of describing the full response payload or validation-failure behavior, which matters given there is no output schema.

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?

Reported schema coverage is 0% at the top level, but the description compensates only partially: it explains the batch bounds and the critical per-event idempotency_key semantics (same key + same payload = duplicate, same key + different payload = conflict). It says nothing about subscription, value, timestamp, or unique_value requirements, which the agent must infer from the nested schema.

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?

The description names a specific verb and resource ('Record ... usage events'), states the batch size range (1-100), the atomicity model (all-or-nothing), and even the underlying endpoint (POST /api/v1/usage). An agent can immediately distinguish this from siblings like get_meter_rollups or create_meter, which are read/configuration operations.

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?

Usage is implied clearly by the batch/ingestion framing and the retry guidance tells the agent when re-calling is safe. However, it never explicitly states when to prefer this tool over alternatives or what to do if the batch is rejected, leaving the when-to-use decision 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