Skip to main content
Glama
merit-aktiva-mcp

merit-aktiva-mcp

by lauri911

Merit List Sales Invoices

merit_list_sales_invoices
Read-only

Lists sales invoices for a date range with customer, net and gross amounts, and payment status; supports customer and unpaid-only filters.

Instructions

Sales invoices (müügiarved) in a period: number, dates, customer, amounts, paid or not. TotalAmount is without VAT, TotalSum with VAT, in the invoice's own currency.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "period_start": "<period_start>",
      "period_end": "<period_end>"
    },
    "name": "merit_list_sales_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return (totals still cover all)
customerNoOnly customers whose name contains this
date_typeNoFilter on document date, or on when it was last changeddocument
period_endYesLast day, YYYY-MM-DD (periods over 3 months are fetched in pieces; max 36 months)
unpaid_onlyNo
period_startYesFirst day, YYYY-MM-DD

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the useful semantic that TotalAmount is net of VAT while TotalSum includes it, in the invoice currency, but since an output schema exists this largely restates field definitions. No mention of how truncation via limit interacts with totals, which is the main behavioral risk.

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?

Two compact sentences, zero waste, with the resource and period scope front-loaded ahead of the return-field clarifications. Every sentence carries information.

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?

With an output schema, full annotation coverage, and 83% parameter documentation, the description is nearly complete for a read-only listing tool. The remaining gap is routing guidance versus merit_get_sales_invoice and the other invoices lists, which would prevent wrong-tool selection.

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 83%, so the schema already documents limit, customer, date_type, and both period bounds including the 3-month/36-month fetching behavior. The description only gestures at 'in a period' and adds nothing about date_type, customer matching, or unpaid_only semantics. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (sales invoices / müügiarved) and scope (in a period), and enumerates the fields returned. The 'sales' qualifier naturally separates it from merit_list_purchase_invoices and merit_list_recurring_invoices in the sibling set, though it never explicitly contrasts with them.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to pick this versus merit_get_sales_invoice for a single record or merit_customer_debts for outstanding balances. Implied usage is a filtered period listing, but the agent must infer it.

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