Skip to main content
Glama
iseppo

e-arveldaja MCP Server

by iseppo

Create Purchase Invoice from PDF

create_purchase_invoice_from_pdf

Create a draft purchase invoice from PDF data, attaching the source file and using exact totals from the original invoice.

Instructions

Create a draft purchase invoice from extracted document data and attach the source file. Direct-call contract: pass exact invoice vat_price/gross_price when known, never recalculate; non-EUR requires currency_rate (EUR per 1 foreign unit); base_* may lock actual EUR settlement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesItems [{custom_title, cl_purchase_articles_id, purchase_accounts_id, purchase_accounts_dimensions_id?, total_net_price, vat_rate_dropdown?, amount?, vat_accounts_id?, vat_accounts_dimensions_id?, cl_vat_articles_id?, reversed_vat_id?}]. purchase_accounts_dimensions_id is REQUIRED when the expense account has dimensions; same for vat_accounts_dimensions_id on dimensioned VAT accounts.
notesNoOptional notes (assumptions made, manual adjustments). Do NOT use the source document filename — the document is already uploaded and attached.
currencyNoCurrency code (default EUR). Use the original invoice currency (e.g. USD) and supply currency_rate.
file_pathYesAbsolute path to the source invoice document (PDF/JPG/PNG); uploaded during creation.
term_daysYesPayment term days
vat_priceNoEXACT total VAT from the original invoice; never recalculate. Omit only if truly absent from the document.
ref_numberNoReference number
gross_priceNoEXACT total gross from the original invoice; never recalculate. Omit only if truly absent from the document.
invoice_dateYesInvoice date (YYYY-MM-DD)
journal_dateYesTurnover/booking date (YYYY-MM-DD)
currency_rateNoExchange rate as EUR per 1 foreign currency unit. Required when currency != EUR.
source_sha256YesSHA-256 of the document returned by extract_pdf_invoice; binds this booking to the exact reviewed bytes.
base_net_priceNoEUR equivalent of net_price; auto-derived from currency_rate when omitted.
base_vat_priceNoEUR equivalent of vat_price; auto-derived from currency_rate when omitted.
invoice_numberYesInvoice number
bank_account_noNoSupplier bank account
base_gross_priceNoActual settled EUR gross total; auto-derived from currency_rate when omitted.
block_on_duplicateNoRefuse creation when this receipt's cash outflow looks like an already-booked duplicate (default false: warn only).
supplier_client_idYesSupplier client ID (from resolve_supplier)
liability_accounts_idNoLiability account (default 2310)
Behavior4/5

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

Annotations already indicate write operation (readOnlyHint=false) and open-world side effects. The description adds critical behavioral details like the 'direct-call contract' and parameter behaviors (auto-derivation, lock). It does not fully disclose all side effects but covers key aspects.

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?

The description is extremely concise: three sentences that pack essential purpose and rules with zero filler. Every sentence adds value and the key action is front-loaded.

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?

Given the tool's complexity (20 parameters, no output schema, many siblings), the description covers the main action, critical rules, and usage hints. It lacks an explicit statement about return values and could mention when to prefer this over other purchase invoice tools, but overall it is well-rounded.

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 description coverage is 100%, so each parameter is well-documented in the schema itself. The description adds high-level guidance but does not significantly deepen understanding beyond what the schema already provides. Baseline of 3 is appropriate.

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 the action ('Create a draft purchase invoice'), the source ('from extracted document data'), and the file attachment. It distinguishes from siblings like 'create_purchase_invoice' (no PDF attachment) and other 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?

The description provides explicit rules for calling the tool (e.g., never recalculate vat_price/gross_price, currency_rate required for non-EUR, base_* parameters lock EUR settlement). However, it does not explicitly state when not to use this tool or compare with alternatives.

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

Install Server

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/iseppo/e-arveldaja-mcp'

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