Skip to main content
Glama

metered_billing

Set up usage-based billing with tiered pricing, real-time usage tracking, and threshold alerts to monitor consumption.

Instructions

Configure metered/usage-based billing with real-time usage tracking and threshold alerts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYesUnit of measurement (e.g., api_calls, gb_stored)
tiersYesPricing tiers
api_keyNoAPI key for authentication
meter_nameYesName of the usage meter
reset_periodNomonthly
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals some behavior (configure billing, enable tracking and alerts) but omits critical details: whether this creates a new meter or updates an existing one, whether re-running overwrites existing tiers, what side effects 'threshold alerts' produce and where they are delivered, and whether the api_key parameter is mandatory for authentication. For a mutating tool with zero annotation coverage, this is a significant gap. No contradiction with annotations exists since none were provided.

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 words; the verb and resource lead, and the distinctive features are appended efficiently. It earns its length, though it is short enough that one might argue it under-specifies rather than being optimally concise.

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

Completeness2/5

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

For a 5-parameter configuration tool with no annotations and no output schema, the description is incomplete. It omits whether the operation is idempotent, whether api_key is required, the meaning/default of reset_period, and what the call returns. The mismatch between the claimed 'threshold alerts' feature and the absence of any alert-threshold parameter is a concrete completeness gap an agent will hit when trying to invoke the tool correctly.

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 80%, so the schema already documents four of five parameters. The description itself adds no parameter-level meaning, and notably mentions 'threshold alerts' while no schema parameter exists for alert thresholds — leaving the agent to wonder how alerts are controlled. With high coverage, baseline 3 is appropriate; the description neither helps nor hurts beyond the schema.

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?

The description states a specific verb ('Configure'), a resource ('metered/usage-based billing'), and two defining features (real-time usage tracking, threshold alerts). This is clear enough to distinguish from adjacent siblings like usage_tracker (which tracks rather than configures) and subscription_billing_setup (flat-rate vs metered pricing), though it does not explicitly name any sibling.

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 guidance on when to use this tool versus alternatives. With dozens of billing-adjacent siblings (subscription_billing_setup, sub_add_billing, stripe_subscription_manager, plan_limits_config, usage_quota_enforcer), an agent cannot tell whether metered_billing is the right choice versus a Stripe-based or subscription-based approach. Usage is only implied by the description's own wording; no exclusions or alternative routing are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server