Skip to main content
Glama

Convert estimate to invoice

convert_estimate_to_invoice
Destructive

Turns an accepted estimate into a draft invoice with the same lines, once while that invoice stands (after the invoice is voided or its draft deleted, the estimate can be turned into a new one). Counts toward the free plan's 2 documents per month.

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesThe accepted estimate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds useful behavior beyond annotations: the resulting invoice is a draft with the same lines, the conversion has a one-time constraint tied to invoice lifecycle, and it counts toward the free plan document quota. It does not describe permissions or whether the estimate is marked consumed, but the annotations already flag destructive behavior.

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?

Front-loads the core action and result, then adds lifecycle and quota constraints compactly. No wasted sentences.

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?

For a one-parameter conversion with no output schema, the description covers the action, result, one-time lifecycle constraint, and billing impact. Minor gaps remain around exactly what is returned or whether the source estimate is altered, but the essentials are present.

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%, so the single parameter is already documented. The description reinforces that the input is an accepted estimate but adds no format or identity details beyond the schema.

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?

States a specific verb and resource: turning an accepted estimate into a draft invoice with the same lines. This is clearly distinct from generic invoice creation siblings such as create_invoice and create_invoice_from_work.

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?

Explains the lifecycle condition: it can be done once while the resulting invoice stands, and again only after the invoice is voided or its draft deleted. It does not explicitly compare against sibling tools like create_invoice_from_work, but the accepted-estimate condition provides clear selection context.

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