Skip to main content
Glama
merit-aktiva-mcp

merit-aktiva-mcp

by roosa-dev

create_invoice

Creates sales invoices, including credit invoices via negative quantities or totals; edit by deleting and recreating because invoices cannot be updated.

Instructions

Create a sales invoice (use negative Quantity/TotalAmount for credit invoice; invoices cannot be updated — delete and recreate). Body: Customer {Name, RegNo, CountryCode, ...}, InvoiceNo, DocDate, DueDate, InvoiceRow[] {Item {Code, Description, Type, UOMName}, Quantity, Price, TaxId}, TaxAmount[] {TaxId, Amount}, TotalAmount.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the most consequential trait: an invoice cannot be updated, only deleted and recreated. It also explains the credit-invoice representation and enumerates the body surface. It omits auth/permission needs, whether the invoice is numbered or emailed on creation, and whether amounts are recalculated server-side.

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-loaded with the action and the two critical constraints, then the field map; every clause carries information and there is no filler. The dense semicolon-and-brace syntax makes it slightly harder to scan than plain prose, but it is appropriately sized for the payload it documents.

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 creation tool with no annotations, no output schema, and a free-form body, the description should say what comes back and which fields are mandatory. It handles the body shape and immutability well but leaves requiredness, server-side total handling, and return values (for example the created InvoiceNo) unspecified.

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?

The schema is a bare free-form object (additionalProperties, no declared properties), so the description is the only source of body semantics and it deviates from the zero-param baseline by enumerating Customer, InvoiceNo, DocDate, DueDate, InvoiceRow, TaxAmount, and TotalAmount. It does not say which fields are required, nor clarify relationships such as whether TaxAmount and TotalAmount must be supplied or are derived from InvoiceRow.

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 ("Create a sales invoice") and the qualifier "sales" implicitly separates it from the purchase-invoice siblings. It also adds two scoping facts (credit-invoice sign convention and immutability) that let an agent identify the tool quickly.

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 explicit conditional guidance for credit invoices (negative Quantity/TotalAmount) and the correct remedy for modification (delete and recreate rather than update). It never names a sibling such as create_purchase_invoice or offer_to_invoice to route between creation variants, so routing is left partly to inference.

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