Skip to main content
Glama

Lago MCP by usefulapi

Get billable metric

lago_get_billable_metric
Read-only

Retrieve a single billable metric by code. Lago API: GET /billable_metrics/{code}.

Input Schema

NameRequiredDescriptionDefault
codeYesThe billable metric's unique code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3.3/5.0
Behavior2/5

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

The readOnlyHint=true annotation already establishes this is a safe read, but the description adds no behavioral context beyond that: no 404 handling for an unknown code, no pagination/rate-limit notes, and nothing about what is returned. It essentially only restates the REST route.

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?

Two short sentences, the purpose is front-loaded, and the API route is appended as supporting detail. Nothing is wasted or buried.

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

Completeness3/5

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

For a one-parameter read tool with an annotation covering safety and no output schema, the definition is minimally adequate. It could still note failure behavior for an invalid code or briefly characterize the returned metric object.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents 'code' as the unique code. The description's 'by code' merely echoes the schema, which is the baseline 3 case.

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+resource ('Retrieve a single billable metric') and scopes it to one record via 'single' and 'by code', which distinguishes it from the sibling lago_list_billable_metrics. It does not name that sibling explicitly, so it falls just short of 5.

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

Usage Guidelines3/5

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

The phrase 'by code' implies you need a code in hand, so usage is inferable, but there is no explicit when-to-use statement, no mention of the alternative list tool, and no guidance on what to do if the code is unknown.

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.