Skip to main content
Glama

ScriptGrain

Get the latest invoice

get_invoice
Read-onlyIdempotent

Fetch the account's latest ScriptGrain invoice: number, amount, status and dates, plus a Stripe-hosted web link and a directly downloadable PDF link (invoice_pdf). Free and read-only. Returns no_billing_account if the account has never had a paid subscription.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds genuine value beyond the annotations by disclosing the edge-case return (no_billing_account when there has never been a paid subscription) and confirming the call is free.

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 sentence, front-loaded with the resource, then the returned fields, then the edge case. 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?

There is no output schema, so the description carries the burden of describing the return surface, which it does by listing fields and the no_billing_account condition. It is complete enough to invoke correctly, though it does not describe the web/PDF link lifetimes or the no_billing_account shape.

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?

The tool takes zero parameters, so there is nothing to document; the baseline for a zero-param tool is 4. The description correctly adds no misleading parameter claims.

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 (Fetch) and resource (the account's latest ScriptGrain invoice), then enumerates the exact fields returned (number, amount, status, dates, web link, PDF). An agent can distinguish it from get_billing because it is scoped to the single latest invoice.

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 description implies context ('Free and read-only', latest-invoice scope) but never states when to choose this over the sibling get_billing, nor any exclusion conditions. Usage is inferable rather than spelled out.

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