Skip to main content
Glama

Edge AI Guardrail

guardrail_check_budget

Fetches real-time hourly, daily, and monthly spend, remaining caps, and circuit-breaker counters via /v1/usage.

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": "guardrail_check_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
guardKeyNoCustomer x-guard-key (optional if provided via x-guard-key HTTP header).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does convey that this is a read ('Fetches'), that values are real-time, and names the backing endpoint /v1/usage. It does not state auth requirements beyond what the schema implies, rate limits, or behavior when no key is supplied and no header is present.

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?

A single front-loaded sentence with no filler; the enumerated outputs come before the implementation detail. The trailing 'via /v1/usage' is somewhat implementation-level but does not bloat the definition.

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 one-optional-param read tool with no output schema, the description usefully enumerates the returned values, which substitutes for a missing return schema. Only the auth/edge-case behavior and sibling differentiation are left implicit.

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?

Only one optional parameter (guardKey) and schema description coverage is 100%, so the schema already explains the x-guard-key/header fallback. The description adds nothing about the parameter, which is acceptable at full coverage but not above baseline.

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 (Fetches) and enumerates the concrete resources returned: hourly/daily/monthly spend, remaining caps, and circuit-breaker counters. An agent can tell it is a budget/usage readout tool, though it does not explicitly distinguish itself from the sibling guardrail_status.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance, and no mention of guardrail_status or any alternative for status-type information. Usage is only implied by the tool name and the word 'budget'.

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