Skip to main content
Glama
Yadley
by Yadley

Create Invoice

whmcs_create_invoice

Create new client invoices by specifying client ID, dates, line items, tax rates, payment method, and status. Generate accurate billing records directly in WHMCS.

Instructions

Create a new invoice for a client

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoInvoice date (YYYY-MM-DD)
notesNoInvoice notes
statusNoInvoice status
useridYesClient ID
duedateNoDue date (YYYY-MM-DD)
taxrateNoTax rate percentage
taxrate2NoSecond tax rate percentage
itemtaxedNoLine items taxed flags
itemamountNoLine item amounts
sendinvoiceNoSend invoice email
paymentmethodNoPayment method
itemdescriptionNoLine item descriptions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for disclosing behavioral traits. It only states the basic function without explaining side effects (e.g., does it trigger email sending? What happens on failure?). Critical behaviors like permissions or auto-actions are omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence. It is front-loaded and waste-free. However, given the tool's complexity (12 parameters), a slightly longer description could add value without losing conciseness.

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

Completeness2/5

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

Despite 12 parameters and no output schema, the description offers no information about return values, error handling, or important constraints (e.g., required relationships between line items). The tool is non-trivial, and this minimal description leaves gaps for an AI agent.

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 description coverage is 100%, meaning the input schema already documents all parameter purposes. The description adds no extra insight beyond the schema. Baseline score of 3 is appropriate since the schema suffices, but the description could have elaborated on relationships between parameters.

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?

The description clearly states the action ('Create') and the resource ('a new invoice for a client'). The verb-resource combination is specific and unambiguous. While sibling tools like whmcs_update_invoice exist, the name and description make the creation intent obvious.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention that it should be used for new invoices only, nor does it exclude scenarios like updating (handled by whmcs_update_invoice). No context on prerequisites or when not to use it.

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