Skip to main content
Glama

Flag meter

flag_meter

Admin: flag/unflag a meter as test/synthetic so its events are excluded from usage statistics by default. Touches meter metadata only — never events, never the hash chain, never billing accruals. Requires the server's VIRIDIS_ADMIN_TOKEN.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "meter_id": "<meter_id>",
      "is_test": "<is_test>",
      "admin_token": "<admin_token>"
    },
    "name": "flag_meter"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional. Why the flag changed.
is_testYesTrue to flag the meter as test traffic, false to clear it.
meter_idYesThe meter id returned by create_meter.
admin_tokenYesThe server's admin token. Required for this admin action.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed4 schema fields changed
    • addedInput schema / properties / admin_token / description
      Added value: +"The server's admin token. Required for this admin action."
    • addedInput schema / properties / is_test / description
      Added value: +"True to flag the meter as test traffic, false to clear it."
    • addedInput schema / properties / meter_id / description
      Added value: +"The meter id returned by create_meter."
    • addedInput schema / properties / note / description
      Added value: +"Optional. Why the flag changed."
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses the auth requirement (VIRIDIS_ADMIN_TOKEN), the blast radius (metadata only, no events, no hash chain, no billing accruals), and the default-state consequence ('excluded ... by default', implying the flag is an overridable default rather than a hard delete). This is exactly the kind of context annotations cannot carry.

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

Conciseness5/5

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

Three short sentences ordered by importance: what it does, what it does not touch, what it requires. Every clause carries distinct information and nothing is repeated.

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 values need no prose. For a single-entity admin mutation, the description covers purpose, side-effect boundaries, and authentication — the remaining unknowns are all covered by structured fields.

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 100%, so meter_id, is_test, admin_token, and note are already fully documented. The description's 'flag/unflag' wording reinforces the boolean polarity of is_test but adds no new syntax, format, or constraint information beyond the schema.

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 pair (flag/unflag), the exact resource (a meter), and the outcome (its events excluded from usage statistics by default). The clause 'Touches meter metadata only — never events, never the hash chain, never billing accruals' distinguishes it from record_usage and verify_chain without needing to open their schemas.

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

Usage Guidelines4/5

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

The use case is clear: mark a meter as test/synthetic traffic so its events don't pollute usage stats, and clear the flag with is_test=false. There is no explicit when-not guidance or named alternative for related admin operations, but the 'Admin:' prefix and the token requirement set the operating context firmly.

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.