Skip to main content
Glama

Arve detailid

get_invoice_details
Read-onlyIdempotent

Tagasta ÜHE ostu- või müügiarve täisdetailid: arveread kontodega, KM-info, tekkekanne (deebet/kreedit read) ja maksesobitus (seotud pangatehingud). Kasuta, kui kasutaja küsib, kas arve on õigesti kirjendatud, mis kontole arve läks või kas arve on makstud/laekunud. invoiceId saad list_purchase_invoices / list_sales_invoices tulemuse id-väljast.

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": {
      "invoiceType": "<invoiceType>",
      "invoiceId": "<invoiceId>"
    },
    "name": "get_invoice_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesArve id (listi tööriista tagastatud id)
invoiceTypeYespurchase = ostuarve, sales = müügiarve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds valuable content beyond that by naming the four detail blocks returned (lines, VAT, journal entry, payment matches), though it says nothing about volume limits or behavior for an unknown id.

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?

Three dense sentences with the returned payload front-loaded, followed by trigger conditions and id sourcing. No filler and nothing repeated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of describing returns — and it does so block by block (lines, VAT, journal entry, payment matching) while also stating how to obtain the required id. Nothing an agent needs to call it correctly is missing.

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 coverage is 100% and both parameters are self-described, including the purchase/sales enum, so the baseline is 3. The description reinforces provenance of invoiceId (from the list tools' id field) but adds no format or edge-case semantics beyond the schema.

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?

Specific verb ("Tagasta") plus resource ("ÜHE ostu- või müügiarve täisdetailid") and an explicit enumeration of the returned payload: invoice lines with accounts, VAT info, accrual/debit-credit entry and payment matching. The singular scope ("ÜHE") clearly distinguishes it from the list_* siblings.

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?

Gives concrete trigger questions (is the invoice booked correctly, which account did it hit, has it been paid/received) and routes the agent to list_purchase_invoices / list_sales_invoices for the required id, so the dependency between tools is explicit rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources