Skip to main content
Glama

metering__create_meter

Set up a usage meter between provider and consumer agents, defining the unit of measure and cost per unit in minor currency units.

Instructions

[metering — usage metering + SLA accounting (x402 meter)] Create a usage meter between a provider and a consumer agent.

unit: what is being counted (call, token, kwh, ...). Price is in minor
currency units (cents) per unit. Returns the meter_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYes
consumerYes
currencyNoUSD
providerYes
sla_targetNo
price_minor_per_unitYes
Behavior2/5

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

No annotations provided, so description must fully disclose behavior. It mentions creating a meter and returning a meter_id, but omits side effects (e.g., idempotency, duplicate handling), permissions, or if the meter is immediately active. For a creation tool, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is relatively concise at two sentences, but uses a bracketed header that may confuse. It is front-loaded with domain context. Could be more structured but acceptable.

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?

No output schema, so description should explain return value (done: meter_id). However, it lacks error conditions, edge cases, or context about provider/consumer relationships. Incomplete for a tool with six parameters and no schema descriptions.

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

Parameters2/5

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

Schema has 0% description coverage, so description must explain parameters. It only explains 'unit' and 'price_minor_per_unit', leaving provider, consumer, currency, and sla_target unexplained. Two out of six parameters covered is inadequate.

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 clearly states the tool creates a usage meter between provider and consumer, with specific verb 'create' and resource 'usage meter'. The domain is indicated via bracketed prefix. However, it does not differentiate from other create tools in sibling list, though the unique resource type helps.

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, such as prerequisites like needing provider/consumer agents or that a meter must exist before recording usage. The description only states what it does, not when it is appropriate.

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/jdhart81/viridis-agent-fleet'

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