Skip to main content
Glama

getUpcomingInvoice

Read-only

Preview the upcoming invoice of one subscription, including its existing draft invoice items and projected subscription charges. Requires subscriptionRef. Get subscriptionRef from getSubscriptions. Never invent UUIDs; only use values from prior tool responses.

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": {
      "subscriptionRef": "<subscriptionRef>"
    },
    "name": "getUpcomingInvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
subscriptionRefYesUUID of the subscription whose upcoming invoice to preview.

Output Schema

NameRequiredDescriptionDefault
invoiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that this is a preview whose contents include draft invoice items and projected charges, which confirms nothing is finalized. It does not say whether the preview has side effects or what happens for canceled/draft subscriptions, so the added value is modest.

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, front-loaded with what the tool returns, followed by the prerequisite and the sourcing rule. No filler or repetition.

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

Completeness4/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 not be described, and the single-parameter contract is fully covered including provenance of the ID. For a simple read-only preview tool this is nearly complete; only the absence of guidance contrasting it with getInvoice keeps it from a 5.

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

Parameters4/5

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

With schema coverage at 100%, the schema already defines subscriptionRef as a UUID. The description goes beyond that by naming the retrieval path (getSubscriptions) and prohibiting invented UUIDs, which is meaningful operational guidance for the only parameter.

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 (preview), resource (upcoming invoice), and scope (one subscription), plus what the result contains (existing draft invoice items and projected subscription charges). The word 'upcoming' plus 'preview' clearly separates it from getInvoice, which retrieves an existing invoice.

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?

Explicitly states the prerequisite (requires subscriptionRef) and routes the agent to getSubscriptions to obtain it, with an anti-hallucination rule for the UUID. It lacks an explicit 'when not to use this' exclusion, such as directing callers to getInvoice for already-issued invoices, so it falls short of a 5.

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.

Resources