Skip to main content
Glama
merit-aktiva-mcp

merit-aktiva-mcp

by roosa-dev

create_purchase_invoice

Creates a purchase invoice and posts its general ledger entry directly, bypassing approval; use when you need immediate recording of vendor bills.

Instructions

Create a purchase invoice (creates document + GL entry, bypasses approval flow — prefer create_purchase_invoice_for_approval). Body: Vendor {Name, RegNo, CountryCode, ...}, BillNo, DocDate, DueDate, InvoiceRow[], TaxAmount[], TotalAmount; optional Attachment (same forms as create_purchase_invoice_for_approval).

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_purchase_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/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: the call writes an accounting GL entry and skips approval, which is exactly what an agent needs to know before mutating financial data. It omits supporting context such as required permissions, reversibility/correction path, and whether posting is immediate, so it falls short of a 5.

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: purpose, side effects, and sibling preference come before the body field list, and there is little wasted wording. The trailing ellipsis in 'Vendor {Name, RegNo, CountryCode, ...}' and the parenthetical cross-reference to the sibling's attachment forms are slightly loose.

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 financially consequential create with no annotations and no output schema, it covers the body fields and side effects well but says nothing about what the call returns (document ID? GL entry reference?) or which fields are mandatory. An agent could construct a body but could not predict the response or failure modes.

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 input schema is an open object with no declared properties, so the description does all the work by enumerating the body shape: Vendor sub-fields, BillNo, DocDate, DueDate, InvoiceRow[], TaxAmount[], TotalAmount and an optional Attachment. It adds real meaning beyond the schema, but the '...' after Vendor and the absence of type/requiredness hints for rows and tax arrays leave gaps.

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+resource ('Create a purchase invoice') and immediately adds distinguishing scope: it produces both a document and a GL entry, and it bypasses the approval flow. That makes it clearly separable from create_purchase_invoice_for_approval without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the preferred alternative ('prefer create_purchase_invoice_for_approval') and gives the reason that selects it (approval flow bypass). The routing decision is left nothing to inference.

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