Skip to main content
Glama

API Rate Limit Utilization Calculator

rate-limit-utilization-calculator
Read-onlyIdempotent

Calculate API rate limit utilization given current request count and limit. Returns utilization percentage, buffer, safety status, and risk level (OK at <80%, WARNING at 80-95%, CRITICAL at >95%).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYesRate limit ceiling
window_secondsNoRate limit window in seconds (e.g. 60 for per-minute)
current_requestsYesCurrent request count in the window

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
safeYes
bufferYes
statusYes
next_stepYes
next_step_urlYes
why_follow_upYes
interpretationYes
window_secondsYes
utilization_pctYes
affiliate_contextNo
computation_basisYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / current_requests / examples
      Added value: +[
      +  1
      +]
    • addedInput schema / properties / limit / examples
      Added value: +[
      +  1
      +]
    • addedInput schema / properties / window_seconds / examples
      Added value: +[
      +  1
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "affiliate_context": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affiliate": {
      +          "type": "string"
      +        },
      +        "cta_label": {
      +          "type": "string"
      +        },
      +        "disclosure": {
      +          "type": "string"
      +        },
      +        "framing": {
      +          "type": "string"
      +        },
      +        "posture": {
      +          "enum": [
      +            "secondary"
      +          ],
      +          "type": "string"
      +        },
      +        "slot_id": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "variant": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "affiliate",
      +        "cta_label",
      +        "disclosure",
      +        "framing",
      +        "posture",
      +        "slot_id",
      +        "url",
      +        "variant"
      +      ],
      +      "type": "object"
      +    },
      +    "buffer": {
      +      "type": "number"
      +    },
      +    "computation_basis": {
      +      "type": "string"
      +    },
      +    "interpretation": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "next_step_url": {
      +      "type": "string"
      +    },
      +    "safe": {
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "utilization_pct": {
      +      "type": "number"
      +    },
      +    "why_follow_up": {
      +      "type": "string"
      +    },
      +    "window_seconds": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "buffer",
      +    "computation_basis",
      +    "interpretation",
      +    "next_step",
      +    "next_step_url",
      +    "safe",
      +    "status",
      +    "utilization_pct",
      +    "why_follow_up",
      +    "window_seconds"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources