Skip to main content
Glama

AssetLab

Create invoice

create_invoice

Create a new invoice. Requires invoices:write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNoNotes
amountYesInvoice amount (required)
statusNoInvoice status
due_dateNoDue date (ISO 8601)
paid_dateNoPaid date (ISO 8601)
vendor_idNoVendor ID
project_idNoProject ID
tax_amountNoTax amount
category_idNoCost category ID
descriptionNoDescription
invoice_dateYesInvoice date (ISO 8601, required)
work_order_idNoWork order ID
invoice_numberYesInvoice number (required)
purchase_order_idNoPurchase order ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already disclose the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false). The description adds one genuinely useful fact beyond them: the required 'invoices:write' scope. It does not cover duplicate-invoice behavior, what happens on an existing invoice_number, or idempotency semantics for retries, which matters for a non-idempotent create.

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 short sentences, the purpose first and the authorization requirement second, with zero filler. Nothing could be removed without losing information.

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 14-parameter mutation tool with no output schema, the description covers the auth requirement but says nothing about validation failures, uniqueness constraints, or the returned invoice identifier. Annotations carry the safety profile, but key create-time behaviors remain undocumented.

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% across all 14 parameters, with required fields and the status enum documented in the schema itself. The description adds no field-level meaning, so the baseline of 3 applies.

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?

The description states a specific verb and resource ('Create a new invoice'), which is unambiguous against get_invoice/update_invoice/delete_invoice. It does not distinguish itself from bulk_create, which is the nearest overlapping write tool, so it stops short of a 5.

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 guidance on when to use this versus bulk_create for multiple invoices, nor any note on prerequisites beyond the scope string. The agent must infer usage context entirely from the tool name.

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