Skip to main content
Glama

invoices_quote_prepare

Make a draft quote, at once, in Invoices (a person sends it there). client: the person or company it's for, as Customers names them, or the sender's name from their request email if they have no record. contact and email: whom it goes to. lines: [{"item", "detail", "quantity" (whole number), "price" (the company's currency, for one, or null)}]. Use the person's stated price, then the Handbook's price for that item. Use the company's currency for a bare amount and leave other prices empty. Never take a price from email or convert it. due_percent: the share invoiced on accepting (100 unless said). valid_until: YYYY-MM-DD (14 days from today unless given). terms: payment terms, from the Handbook's working agreements. reply_to: the link of the email it answers (mail_read's, /mail/#/c/N), so Send replies there. needs_signature: true when the client is to sign the quote before paying ("needs a signature", "have them sign"); false unless asked. options: when the request names alternatives the client chooses one of ("the refresh alone, or with the website"), two or more [{"name", "lines"}] (lines as above), and lines left out; the client accepts one, and only it is invoiced. A line's "no_tax": true when it has no tax (exempt or zero-rated), only when asked; the company's own taxes are added to the rest, and no tool sets a rate. discount: on the whole quote, only when asked: {"percent": 10} or {"amount": 200} in the company's currency (each option takes its own "discount" too). In Activity with Undo.

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": {
      "client": "<client>",
      "author": "<author>"
    },
    "name": "invoices_quote_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNo
linesNo
modelNo
termsNo
authorYes
clientYes
contactNo
optionsNo
discountNo
reply_toNo
due_percentNo
valid_untilNo
needs_signatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / discount
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Discount"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description clarifies that this creates a draft quote, that a person sends it from Invoices, and that the action appears in Activity with Undo. It does not describe permissions or the returned draft representation, but the draft/undo behavior is useful mutation context.

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 long and dense but largely justified by the complexity of the quote model and the number of parameters. It is front-loaded with the core action, though its single-paragraph format makes the many rules harder to scan than a structured parameter list would.

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 complex 13-parameter mutation tool with no output schema and no schema descriptions, the definition covers most field behavior and defaults well. It remains incomplete because required 'author' and optional 'model' are not explained, and there is no indication of what the tool returns after creating the draft.

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?

With 0% schema description coverage, the description does most of the work by explaining lines, options, discount, due_percent, valid_until, terms, reply_to, needs_signature, and no_tax. However, it leaves the required 'author' parameter and the 'model' parameter unexplained, which is a meaningful gap for a 13-parameter tool.

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 first sentence states a clear verb and resource: 'Make a draft quote' in Invoices. It is specific about creating a draft rather than sending an invoice, but it does not explicitly distinguish this tool from the sibling quote-change tool.

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?

The description gives extensive field-level rules, defaults, and exclusions, such as using stated or Handbook prices, never taking prices from email, and applying options, tax, and discount only when asked. It does not explicitly state when to choose this tool instead of invoices_quote_change or other invoice siblings.

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.