Skip to main content
Glama

Field Service Business Platform by Doing Work

invoices_create

Create an invoice without a quote (AI can draft lines; a person who can send invoices approves agent-drafted lines before the invoice is sent). Optional due date, memo and deposit. Send it with invoices.send.

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": {
      "job_id": "<job_id>",
      "lines": "<lines>"
    },
    "name": "invoices_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNo
linesYes
due_onNo
job_idYes
tax_rate_idNoTax rate to charge. Leave out for the shop default rate; null for no tax.
deposit_minorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (which only say this is a non-destructive, non-read-only, closed-world write), the description discloses the approval workflow: agent-drafted lines must be approved by a person with sending permission before the invoice goes out. It also makes clear that creation does not send the invoice, a behavioral fact the annotations do not convey.

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?

Three compact sentences with the core scope front-loaded and the send step last. The parenthetical about AI drafting and human approval is slightly dense but carries real information, so little is wasted.

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 mutation tool with no output schema and thin schema descriptions, the description covers the workflow and follow-up send step well but leaves gaps: no indication of what creation returns (e.g., an invoice id), and no coverage of the required parameters or line-item shape.

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

Parameters2/5

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

Schema description coverage is only 17%, so the description carries real burden, yet it only notes that due date, memo and deposit are optional – something the required list already implies. It says nothing about the required job_id, the lines structure, or tax_rate_id, and adds no format or constraint detail beyond the schema.

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?

States a specific verb and resource ('Create an invoice') and scopes it with 'without a quote', which implicitly separates it from the quote-based and time-and-materials creation paths. It doesn't name or contrast those siblings explicitly, so an agent still has to infer which create variant fits its data.

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?

'Create an invoice without a quote' gives a clear condition for choosing this tool, and 'Send it with invoices.send' names the required follow-up step, which is genuinely useful. There is no explicit when-not guidance, but the no-quote qualifier effectively excludes the quote-driven case.

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.