Skip to main content
Glama

SendQuoteNow — AI Quote Engine for Contractors

Convert a quote to an invoice

convert_quote_to_invoice

Turn an accepted quote into a separate invoice record (invoice number, optional due date, payment status). The source quote is marked converted and can no longer be edited or re-converted. Fails if the quote was rejected or already converted. Note: the resulting invoice has no hosted page/PDF yet — use get_invoice to check its status, or create a document_type: "invoice" quote instead when a shareable/payable link is needed.

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": {
      "id": "<id>"
    },
    "name": "convert_quote_to_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesQuote id to convert
due_dateNoISO 8601 date, e.g. "2026-10-15"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it discloses the destructive side effect on the source (marked converted, no longer editable or re-convertible), the preconditions that cause failure, and the limitation that the resulting invoice has no hosted page/PDF. It stops short of stating permission/auth requirements or whether conversion is idempotent/atomic, which keeps it below a 5.

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?

Three dense sentences, front-loaded with the action and outcome, followed by side effects and then the limitation/alternative. Nothing is repeated from the schema and every sentence changes what an agent would do.

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?

There is no output schema, but the description compensates by describing what the new invoice record contains (invoice number, due date, payment status) and pointing to get_invoice for follow-up. Only the exact return shape (e.g., whether the new invoice id is returned) is left implicit.

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 coverage is 100% for both parameters, so the schema already documents id and the ISO 8601 due_date format. The description only adds the nuance that due date is optional and that payment status is part of the created record, without explaining defaults or how payment status is set.

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?

Opens with a specific verb+resource ('Turn an accepted quote into a separate invoice record') and immediately scopes the result by listing the fields the new record carries. It is clearly distinguishable from create_quote, which it explicitly names as the alternative path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the when-to-use condition (accepted quote), the preconditions that block use ('fails if the quote was rejected or already converted'), and a concrete routing rule to a different approach ('create a document_type: "invoice" quote instead when a shareable/payable link is needed'), plus get_invoice for status. This is explicit alternative-selection guidance rather than implied usage.

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