Skip to main content
Glama

create_invoice

Create a draft invoice for a customer by providing their customer ID. Optionally set a description and enable auto-advance to next status.

Instructions

Creates a new draft invoice for a customer. The invoice must be finalized before it can be paid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customer_idYesThe ID of the customer to invoice (e.g., 'cus_123').
descriptionNoA description for the invoice.
auto_advanceNoIf true, the invoice will automatically advance to the next status (e.g., from draft to open).
Behavior3/5

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

Annotations already indicate readOnlyHint=false, so mutation is clear. Description adds that it creates a draft, but no additional behavioral details beyond 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?

Two-sentence description, front-loaded purpose, no redundancy. Every sentence adds value.

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?

Covers creation lifecycle and need for finalization. No output schema, but parameters are fully described. Minor gap: could mention that auto_advance affects status, but not required.

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 covers all parameters with descriptions. Description does not add parameter-level detail beyond what schema provides.

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?

Description clearly states 'Creates a new draft invoice' with specific verb and resource. Distinguishes from sibling tools like finalize_invoice and get_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?

Provides lifecycle context: 'The invoice must be finalized before it can be paid.' No explicit when-not or alternatives, but context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vineethkrishnan/mcp-pool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server