Skip to main content
Glama

Convert proforma

convert_proforma
Destructive

Converts an open proforma with items to a new invoice draft dated today; the proforma becomes INVOICED and can't be edited any more. The invoice draft gets no number and nothing is issued or sent.

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": {
      "company_id": "<company_id>",
      "invoice_id": "<invoice_id>"
    },
    "name": "convert_proforma"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the proforma, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=false, yet the description adds concrete consequences: the proforma becomes INVOICED and is permanently uneditable, the new draft is dated today, and it receives no number and is neither issued nor sent. This tells the agent exactly what is lost and what the result state is, which the annotations alone do not.

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?

A single compact sentence that front-loads the action, followed by the state-change consequences; every clause (dated today, no number, nothing sent) carries information an agent needs.

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?

With no output schema, the description usefully explains what is produced (an unnumbered, unissued draft invoice) and what happens to the source record. It does not say how to subsequently locate the new draft's id, a minor gap given the absence of a return schema.

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% and both parameters are already documented with their source tools (list_companies, list_invoices), so the description adds no parameter-level detail. Baseline 3 is appropriate since the schema does all the work.

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 ('Converts an open proforma ... to a new invoice draft') plus the resulting state change, which clearly separates it from sibling draft-creation (create_invoice_draft) and issuance (issue_invoice) tools.

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?

Gives a clear precondition ('an open proforma with items') that tells the agent when this tool applies, and the destructive side effect acts as an implicit caution. It does not explicitly name an alternative such as create_invoice_draft for the non-conversion path, so it stops short of full when/when-not guidance.

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