Skip to main content
Glama

Preview usage limits

pmitz_check_limits
Read-onlyIdempotent

Previews whether the requested units fit. Returns featureStatus (AVAILABLE, LIMIT_EXCEEDED or NOT_ALLOWED) and the units that would remain after the action. Nothing is reserved or recorded. 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_check_limits"
  }
}

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.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, and the description adds real value on top: the exact return content (featureStatus with its three enum values plus the units that would remain) and an explicit no-side-effect guarantee. It also scopes execution to a single sandbox, which annotations cannot express.

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 short sentences, front-loaded with the core purpose, then return shape, then the side-effect guarantee. Every sentence carries distinct information and none repeats the title or schema.

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?

With six parameters, a nested units object and no output schema, the description does the right work by enumerating the return values and the no-write guarantee. Minor gaps remain: nothing about behavior on NOT_ALLOWED or invalid sandbox keys, and no pagination or error semantics.

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% and the schema already documents units as a per-limit-ID map, the groupType enum, and the sandbox key provenance. The description adds no parameter-level detail beyond that, so the 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 outcome: 'Previews whether the requested units fit,' and names the resource domain (units against limits in a Pmitz sandbox). It clearly separates itself from mutating siblings by asserting 'Nothing is reserved or recorded,' though it never names pmitz_record_usage or pmitz_get_remaining_limits as the contrasting alternatives.

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 dry-run framing ('Nothing is reserved or recorded') implies this is the pre-flight check before a write, which is useful context. But there is no explicit when-to-use statement, no exclusion ('do not use for X'), and no named alternative for the actual write path, so the routing decision is left 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.