Skip to main content
Glama

Show or hide invoice labels

set_invoice_labels
DestructiveIdempotent

Hides or shows fields printed on the PDF of an invoice draft or an open proforma: the country, VAT ID, tax and registration number, e-mail and phone of the company, its bank name and BIC, the country, VAT ID, tax and registration number of the customer, the payment reference, the place, the due date, the supply date and the company logo. Every field is shown unless it is hidden. Only the given labels change; a label already in the requested state stays as it is. The data itself is not changed, and a hidden field can be shown again. Issued documents can't be changed.

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": "set_invoice_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
shownNoThe labels to show on the document again.
hiddenNoThe labels to hide on the document. ENTITY_* are the company, CUSTOMER_* the customer, ENTITY_LOGO the company logo. At least one label is required in hidden or shown, and a label can't be in both.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the document, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations, which only flag destructiveHint=true and idempotentHint=true. The description explains the default state ('every field is shown unless it is hidden'), that the operation is selective ('only the given labels change'), reversible ('a hidden field can be shown again'), and non-destructive to data ('the data itself is not changed') — resolving the apparent tension with destructiveHint=true.

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?

Front-loads the verb and the scope, then uses the long field enumeration as the payload of the sentence rather than as filler. The enumeration is dense but each item is a real enum value; a bulleted or grouped form would be easier to scan.

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 4-parameter mutation with full annotation coverage and no output schema, the description supplies scope, default state, selectivity, reversibility and the issued-document restriction. Only the shape of the response and error behavior for an issued document are left unstated, which is minor here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the prose maps friendly field names ('bank name and BIC', 'the place, the due date') onto the ENTITY_*/CUSTOMER_* enum members, helping the agent pick correct constants. It does not add detail on how shown and hidden are processed together beyond the schema's own mutual-exclusion note.

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 concrete verb pair ('hides or shows') on a concrete resource ('fields printed on the PDF of an invoice draft or an open proforma'), then enumerates the exact fields affected. This clearly separates it from sibling mutators like update_invoice_draft or set_invoice_bank_account, which change data rather than PDF presentation.

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 an explicit applicability boundary: it works on invoice drafts and open proformas, and 'Issued documents can't be changed' tells the agent when the call will fail. It stops short of naming which sibling to use instead when the document is already issued or when the underlying data (not the label) must be edited.

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