Skip to main content
Glama

Müügiarve mustand

create_sales_invoice_draft

Loo müügiarve MUSTAND (ei väljastata, ei saadeta, pearaamatusse ei kirjendata). Klient, tulukonto, KM ja number tuletatakse samamoodi nagu propose_sales_invoice-is; kasutaja vaatab mustandi Uunos üle ja väljastab ise. Kasuta, kui kasutaja palub arve ette valmistada. Sisend on sama mis propose_sales_invoice-il.

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": {
      "lines": "<lines>",
      "rationale": "<rationale>"
    },
    "name": "create_sales_invoice_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesArveread (1–30).
dueDateNoMaksetähtaeg YYYY-MM-DD
dueDaysNoMaksetähtaeg päevades (vaikimisi müügiarvete seadetest). Kasuta seda VÕI dueDate.
currencyNoValuuta, vaikimisi EUR
customerNoUus klient (kliendiregistris puudub). Äriregistri vaste korral piisab regCode-st — nimi, KMKR ja aadress laetakse registrist.
languageNoArve PDF keel (vaikimisi kliendi eelistus või seadetest)
rationaleYesLühike eestikeelne selgitus kaardile, nt „Korratud augusti arve 2026-0041 read".
customerIdNoOlemasoleva kliendi id find_customers tulemusest. Kasuta seda VÕI customer.
descriptionNoLisatekst arvele (valikuline), nt tellimuse number
invoiceDateNoArve kuupäev YYYY-MM-DD (vaikimisi täna)
vatIncludedNotrue = ühikuhinnad sisaldavad juba käibemaksu (kasutaja ütles nt „100 € koos KM-ga")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already say readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the write-but-non-destructive profile is covered. The description adds genuinely new behavioral facts: no issuing, no sending, no ledger entry, and that customer, revenue account, VAT and invoice number are derived by the same logic as propose_sales_invoice. It omits duplicate-creation behaviour, which matters for a non-idempotent create.

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?

Four short sentences with the most consequential constraint (MUSTAND, no issuing/sending/posting) front-loaded and capitalised. The cross-reference to propose_sales_invoice and the usage trigger each earn their place; nothing is padded or repeated from the schema.

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 an 11-parameter nested write tool with no output schema, the definition covers the critical semantics: what is created, what side effects do not occur, who completes the flow, and where the input shape comes from. It does not state what the call returns (draft id, preview link), which would be the remaining useful addition given the absent output schema.

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 100%, so every field including nested line items is already documented in the schema. The description only adds the cross-reference "Sisend on sama mis propose_sales_invoice-il", which implies inheritance of derivation rules but gives no field-level detail beyond the schema. Baseline 3 applies.

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 ("Loo müügiarve") plus a decisive scope qualifier in caps: it creates a DRAFT that is not issued, sent, or posted to the ledger. That scope statement is exactly what separates it from propose_sales_invoice and any issue-invoice path, so an agent can route correctly from the first sentence alone.

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 an explicit trigger ("Kasuta, kui kasutaja palub arve ette valmistada") and frames the division of labour: the draft is reviewed and issued by the user in Uuno. It does not explicitly say when NOT to use it or name a preferred alternative for the issue step, so it is clear context without exclusions.

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