Skip to main content
Glama

Preview invoice design

well_preview_invoice_design
Read-only

Draw invoice designs with the given settings, as the sheet markup the PDF path prints. The invoice-design card calls this when it opens and when a setting changes; it changes nothing.

REQUIRED: layout, theme, locale — the choices well_show_invoice_design returns. OPTIONAL: invoice_id (the invoice being designed: its parties, lines, totals and reference are drawn instead of a sample), payment_means_id (with invoice_id, the chosen account whose coordinates the draft prints), layouts (further designs to draw with the same settings), tax (the chosen regime's percent, whether it exempts, and its name), payment_terms_note_id (the chosen payment-terms note: its full text prints with its variables filled, as on the PDF), payment_means_label (only for a payment means that prints bank coordinates), legal_mentions_note_id (the chosen legal-mentions note: its full text prints with its variables filled, as on the PDF).

Returns data.sheets, one entry per design with its layout, its paper and its sheet_html. The requested layout comes first. The dark theme is a class the mounting page puts on the sheet's wrapper, so sheet_html is the same for both themes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taxNoThe chosen tax regime.
themeYesThe ink the page is printed in.
layoutYesThe design to draw: one of the compiled designs.
localeYesThe language and number format of the page.
layoutsNoFurther designs to draw with the same settings, beside `layout`.
invoice_idNoThe invoice being designed. Without it, a sample invoice is drawn.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.
payment_means_idNoThe chosen payment means. With invoice_id, the draft prints its coordinates.
payment_means_labelNoThe chosen payment means' name, only when it prints bank coordinates.
payment_terms_note_idNoThe chosen payment-terms note. Its full text prints with its variables filled, as on the PDF.
legal_mentions_note_idNoThe chosen legal-mentions note. Its full text prints with its variables filled, as on the PDF.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
successYes
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
resolved_workspaceNoThe workspace that answered, when the caller named none and the token authorizes several.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / newly_connected / description
      Previous value: -"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."New value: +"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."
  2. Changed1 schema field changed
    • addedInput schema / properties / workspace_scope
      Added value: +{
      +  "description": "Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.",
      +  "enum": [
      +    "family"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / layout / description
      Previous value: -"The design: one of the document_slugs well_list_generative_documents returns."New value: +"The design to draw: one of the compiled designs."
    • addedOutput schema / properties / newly_connected
      Added value: +{
      +  "description": "Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "service_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "service_id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources