Skip to main content
Glama
merit-aktiva-mcp

merit-aktiva-mcp

by roosa-dev

create_purchase_invoice_for_approval

Send a purchase invoice to the approval queue without posting a GL entry; it stays pending until approved in Merit.

Instructions

Send a purchase invoice to the approval queue (Kinnitamata ostuarved); no GL entry until approved in Merit. Body: Vendor {Id or Name, VatAccountable, CountryCode, RegNo, VatRegNo}, DocDate, DueDate, BillNo (max 35), InvoiceRow[] {Item {Code, Description}, Quantity, Price, TaxId, optional GLAccountCode}, TotalAmount (excl. VAT), TaxAmount[] {TaxId, Amount}; optional RefNo, CurrencyCode, Hcomment, Attachment (PDF) as {FileName, FileContent (base64)} or by reference — {Url} (https download) or {GmailMessageId, optional GmailAttachmentId, optional FileName} (server fetches it from Gmail; without an id it picks the attachment named FileName, else the first PDF); ExpenseClaim (bool).

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

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 still discloses meaningful behavior: no GL entry is created until approval, and the attachment path has non-obvious server-side semantics (base64 inline vs URL download vs Gmail fetch that defaults to the attachment named FileName, else the first PDF). It omits auth requirements, duplicate handling, and error behavior, which is a real gap for a zero-annotation mutation tool.

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?

The purpose sentence is front-loaded before the field dump, and nearly every clause carries needed information given the empty schema. The body spec is a single dense semicolon-delimited run-on, which makes it harder to scan than a structured list would be.

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 mutation tool with no annotations, no output schema, and an untyped input object, the description supplies the entire request contract, which is complete for calling it correctly. It does not describe the response or failure modes, which an agent would want before relying on the result.

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

Parameters5/5

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

The input schema is an empty free-form object, so the description is the only parameter documentation and it delivers a full body spec: nested Vendor fields, InvoiceRow[] item structure, TotalAmount excl. VAT semantics, BillNo max length, and three mutually exclusive attachment forms. This is far beyond the 0-parameter baseline.

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 states a specific verb and resource ('Send a purchase invoice to the approval queue') and immediately distinguishes the outcome from a direct post ('no GL entry until approved in Merit'). An agent can tell this apart from create_purchase_invoice without opening any schema.

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 'approval queue / no GL entry until approved' framing makes the selection context clear: use this when the invoice must go through Merit approval rather than post directly. It stops short of naming create_purchase_invoice explicitly as the alternative for direct posting, so it falls just short of a 5.

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