Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as middle.network - DNS, Email, Network, Compliance, Domain and Audit Tools. If you published it, claim ownership there.

Verify API key and inspect live unit usage

verify_api_key
Read-onlyIdempotent

Verify that the caller middle.network API key or OAuth token is valid and active, returning key metadata, live daily/monthly unit-cost usage, remaining quota, and rate limits. Takes no parameters ({}); validates the Authorization bearer token from the request header. Use for setup verification, unit-cost usage inspection, or diagnosing HTTP 401 errors; do not use to list probe locations (list_probes) or check caller IP (my_ip). Returns isError=true if key verification fails; requires middle.network auth and uses 0 daily quota units.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "verify_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
keyYesAuthenticated API key metadata.
usageNoLive UTC-day and monthly cost-unit usage for this key.
validYesTrue when the Bearer API key is active.
limitsYesActive rate-limit and quota allowances for this key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / description
      Previous value: -"API key validity status and rate-limit quota details."New value: +"API key validity status, live unit-cost usage, and rate-limit quota details."
    • addedOutput schema / properties / usage
      Added value: +{
      +  "description": "Live UTC-day and monthly cost-unit usage for this key.",
      +  "properties": {
      +    "dailyLimit": {
      +      "description": "Daily cost-unit cap.",
      +      "type": "integer"
      +    },
      +    "monthlyLimit": {
      +      "description": "Included monthly cost-unit allowance.",
      +      "type": "integer"
      +    },
      +    "remainingToday": {
      +      "description": "Cost units remaining today (UTC).",
      +      "type": "integer"
      +    },
      +    "resetsAt": {
      +      "description": "ISO timestamp when today’s counter resets (midnight UTC).",
      +      "type": "string"
      +    },
      +    "usedMonth": {
      +      "description": "Cost units spent in the current UTC month.",
      +      "type": "integer"
      +    },
      +    "usedToday": {
      +      "description": "Cost units spent today (UTC).",
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed11 schema fields changed
    • addedOutput schema / properties / key / description
      Added value: +"Authenticated API key metadata."
    • addedOutput schema / properties / key / properties / id / description
      Added value: +"API key identifier."
    • addedOutput schema / properties / key / properties / name / description
      Added value: +"User-assigned key label."
    • addedOutput schema / properties / key / properties / prefix / description
      Added value: +"Non-secret key prefix for identification."
    • addedOutput schema / properties / key / required
      Added value: +[
      +  "id",
      +  "name",
      +  "prefix"
      +]
    • addedOutput schema / properties / limits / description
      Added value: +"Active rate-limit and quota allowances for this key."
    • addedOutput schema / properties / limits / properties / daily / description
      Added value: +"Daily quota unit allowance (resets at midnight UTC)."
    • addedOutput schema / properties / limits / properties / inFlight / description
      Added value: +"Maximum concurrent tool calls allowed."
    • addedOutput schema / properties / limits / properties / perMinute / description
      Added value: +"Quota units refilled per minute."
    • addedOutput schema / properties / limits / required
      Added value: +[
      +  "daily",
      +  "perMinute",
      +  "inFlight"
      +]
    • addedOutput schema / required
      Added value: +[
      +  "valid",
      +  "key",
      +  "limits"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "API key validity status and rate-limit quota details.",
      +  "properties": {
      +    "key": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "prefix": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "limits": {
      +      "properties": {
      +        "daily": {
      +          "type": "integer"
      +        },
      +        "inFlight": {
      +          "type": "integer"
      +        },
      +        "perMinute": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "valid": {
      +      "description": "True when the Bearer API key is active.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real context beyond them: it requires middle.network auth via the bearer token, consumes 0 daily quota units, and returns isError=true on failed verification. That is useful but stops short of describing rate-limit or pagination behavior of the usage payload.

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?

Front-loads purpose, then usage, then exclusions, then behavior. Dense but every clause carries information; the only weakness is that the first sentence is a long run-on bundling four return values.

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

Completeness5/5

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

An output schema exists so return shapes need not be spelled out, and the description still covers auth requirement, quota cost, and failure signaling. Nothing an agent needs to call a zero-parameter verification tool correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters the baseline is high, and the description correctly says the tool takes an empty object while noting that the credential comes from the Authorization bearer header rather than a parameter. That header detail is genuinely beyond the schema and is the one thing an agent could otherwise get wrong.

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 (verify) plus the resource (middle.network API key or OAuth token) and enumerates what is returned: key metadata, daily/monthly unit-cost usage, remaining quota, rate limits. It explicitly names the siblings it is not (list_probes, my_ip), so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives three concrete when-to-use cases (setup verification, unit-cost usage inspection, diagnosing HTTP 401) and an explicit when-not clause naming the alternatives list_probes and my_ip. No inference is required to pick this tool.

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