Skip to main content
Glama

Sobitamise ettepanek

propose_invoice_match

Loo KINNITAMATA ettepanek pangatehingu sobitamiseks arvega (või koondmakse korral mitme arvega). See EI muuda midagi — kasutaja kinnitab ettepaneku Uunos ja alles siis tekib sobitus ja kanne, täpselt nagu Sobitamise tööruumis (välisvaluuta kursivahe kirjendatakse automaatselt). Arve peab olema get_match_candidates tulemuses ja summa peab klappima (amountMatch ≠ none); mitme arve korral peab valik võrduma get_match_candidates combo-ga. Põhjenda valikut rationale-väljas.

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": {
      "transactionId": "<transactionId>",
      "invoiceIds": "<invoiceIds>",
      "rationale": "<rationale>"
    },
    "name": "propose_invoice_match"
  }
}

Input Schema

NameRequiredDescriptionDefault
rationaleYesLühike eestikeelne põhjendus kasutajale (kuvatakse kinnituskaardil).
invoiceIdsYesArve id(d) get_match_candidates tulemusest: üks arve või koondmakse korral combo.invoiceIds.
transactionIdYesTehingu id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: nothing is mutated until the user confirms in Uuno, at which point the match and ledger entry are created exactly as in the Matching workspace, and FX rate differences are booked automatically. That downstream-effect disclosure and the no-side-effect-until-confirmation guarantee are exactly what an agent needs before calling a non-read-only tool. It is consistent with readOnlyHint=false and destructiveHint=false rather than contradicting them.

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-loads the action and the KINNITAMATA (unconfirmed) qualifier in the first clause, then layers preconditions and the justification requirement. Every sentence carries information, though the 'täpselt nagu Sobitamise tööruumis' aside and the parenthetical FX note slightly pad an otherwise dense paragraph.

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?

For a 3-required-parameter, no-output-schema mutation tool, the description covers what is created, what is deliberately not changed, who confirms, and what preconditions the inputs must satisfy. An agent has everything needed to invoke it correctly without guessing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real constraint semantics: invoiceIds must be drawn from get_match_candidates results and must equal the `combo` list for multi-invoice cases, which the schema does not express. The rationale field's purpose is only restated from the schema, so it does not lift the score higher.

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 precise verb and resource: creating an UNCONFIRMED proposal to match a bank transaction against one or several invoices. It immediately distinguishes itself from the read-only get_match_candidates (which it names as a prerequisite) and from sibling proposal tools by scoping the action to invoice matching, so an agent can select it without opening the 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?

Gives concrete preconditions: the invoice must appear in get_match_candidates output, amountMatch must not be 'none', and for combined payments the selection must equal get_match_candidates' `combo`. It also frames the tool as a proposal step rather than a commit. It stops short of explicitly naming a sibling to use instead in any scenario, so it falls just under the top band.

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