Skip to main content
Glama

Create a new salesbook invoice

create_salesbook_invoice

Create a salesbook invoice with lines, VAT option, and totals. Verify valid VAT-ledger combinations via the options endpoint, attach an optional PDF, and include delivery date for AT/DE.

Instructions

Create a new salesbook invoice.

Create a new salesbook invoice. Use the /salesbook/options endpoint first to determine valid combinations of vat_id, ledger_id and vat_option.

A PDF file can optionally be attached as a base64-encoded string.

For administrations in Austria (AT) or Germany (DE), the delivery_date field is also required.

[Salesbook] POST /salesbook

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
administrationNoThe client administration to act on. Only one is configured: default.
Install Server

TDQS

A4/5.0
Behavior4/5

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

Annotations indicate a non-read-only, non-idempotent, non-destructive write operation. The description adds valuable behavioral context beyond the annotations: a prerequisite call to /salesbook/options, conditional requiredness of delivery_date for certain administrations, and the optional base64 PDF attachment. No contradiction with annotations exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description repeats the opening sentence verbatim: 'Create a new salesbook invoice.' appears twice, wasting a sentence. The remaining content is useful but would benefit from tighter editing. This is not conciseness; it is redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex POST tool with a nested body object and no output schema, the description provides essential preconditions (options endpoint, AT/DE delivery_date) but omits details like how the response is structured, common error cases, or how to construct the full body beyond hints. It is adequate but not comprehensive.

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 description coverage is only 50% at the top level (body is undocumented). The description compensates by clarifying important parameter relationships: valid combinations of vat_id, ledger_id, and vat_option must be determined via an options endpoint, and delivery_date is conditionally required. It also restates the optional base64 PDF, though that is already in 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?

The description clearly states 'Create a new salesbook invoice' with a specific verb and resource, distinguishing it from sibling tools like create_sales_invoice by the explicit 'salesbook' qualifier. The endpoint hint '[Salesbook] POST /salesbook' further anchors what the tool does.

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?

The description provides concrete usage guidance: 'Use the /salesbook/options endpoint first to determine valid combinations of vat_id, ledger_id and vat_option.' It also notes the AT/DE requirement for delivery_date. However, it does not explicitly state when to prefer this tool over alternatives like create_sales_invoice, leaving that distinction implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vladxyz/informer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server