Skip to main content
Glama

API Meter

Get an ingest snippet

get_ingest_snippet
Read-only

Copy-paste server code that reports each request (method, route, status, latency, customer, plan) to API Meter. Batched, fail-open, never blocks your API.

Input Schema

NameRequiredDescriptionDefault
slugNoOptional: your slug, filled into the snippet
frameworkYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false. "Batched, fail-open, never blocks your API" is valuable but describes the behavior of the emitted code, not of the tool call itself — nothing is said about auth requirements or what the call returns (a string? an object with install steps?). No contradiction with annotations.

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?

One short sentence plus a three-word qualifier, front-loaded with what the caller receives. Zero filler.

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 two-parameter, no-output-schema tool the description should state that the return value is the code string and that it varies by framework; neither is covered. The instrumentation-field list is helpful but leaves the essential call shape under-explained.

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 coverage is 50%: slug is documented in-schema, but framework's enum carries no description and the description never mentions that the snippet is framework-specific or that a slug is substituted into it. With half the parameters undocumented, the description should have compensated and does not.

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?

"Copy-paste server code that reports each request ... to API Meter" names the resource (an ingest snippet) and the exact payload it instruments, which cleanly separates it from the sibling tools (create_account, export_usage, get_usage). The verb is implied by the tool name rather than stated, but an agent can tell what it produces.

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?

There is no statement of when to use this versus get_usage or export_usage, no mention of prerequisites (does it need an existing API key or account first?), and no guidance on choosing a framework. Only the onboarding-adjacent framing hints at the use case.

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.