Skip to main content
Glama

Record usage

pmitz_record_usage

Records consumed units for a subject. Refused when a limit would be exceeded. It writes to Pmitz directly, so it does not show whether an application records usage itself. Acts on one Pmitz sandbox.

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": {
      "sandbox": "<sandbox>",
      "groupId": "<groupId>",
      "productId": "<productId>",
      "featureId": "<featureId>",
      "units": "<units>"
    },
    "name": "pmitz_record_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsYesUnits per limit ID, for example {"monthly-exports": 1}. Each value is a positive integer.
groupIdYesIdentifier of the subscription, user or directory group.
sandboxYesThe sandbox key returned by pmitz_create_sandbox, for example pmz_ab12cd34ef56_….
featureIdYesFeature ID inside that product.
groupTypeNoKind of subject. Use "subscriptions" when access depends on a plan.
productIdYesProduct ID from the catalog.

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?

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses a key failure mode ('Refused when a limit would be exceeded') and a scope constraint ('Acts on one Pmitz sandbox'). It misses the implication of idempotentHint=false, i.e. that repeated calls accumulate units and are not safe to retry blindly, which would be the single most valuable addition.

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

Conciseness4/5

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

Four short sentences, front-loaded with the core action, with no filler. The app-instrumentation sentence is slightly tangential but does carry real caveat value.

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 six parameters, a required nested object, and no output schema, the description says nothing about what a successful call returns (e.g. remaining limits or the recorded total) or what a refusal looks like to the caller. It covers the write path but is incomplete for an agent that needs to interpret results.

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 100%, so every parameter, including the nested units map and the groupType enum, is already documented in the schema. The description adds no syntax, format, or constraint detail beyond that, so baseline 3 applies.

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: 'Records consumed units for a subject', which is clearly a metering write operation. It is distinguishable in spirit from pmitz_reduce_usage and pmitz_check_limits, but the description never names or contrasts a sibling, so the differentiation is inferred rather than stated.

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?

Use is only implied by 'Records consumed units for a subject' plus the sandbox scoping note; there is no explicit when-to-use, when-not, or reference to alternatives such as checking limits first (pmitz_check_limits) or decrementing (pmitz_reduce_usage). The caveat about app-side recording is context, not routing guidance.

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.