Skip to main content
Glama
iseppo

e-arveldaja MCP Server

by iseppo

Invalidate Sale Invoice

invalidate_sale_invoice
Idempotent

Revert a confirmed sale invoice to draft status so it can be edited or deleted. Required before deleting a confirmed invoice; record the reason for traceable corrections.

Instructions

Return a confirmed sale invoice to draft status for editing. Required before delete_sale_invoice against a CONFIRMED invoice. RPS § 10: corrections must stay traceable — record why and what replaces it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesObject ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.25.3
  3. Removedv0.25.2
  4. First observedv0.18.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the operation is non-read-only, non-destructive and idempotent, so safety is covered; the description adds compliance context beyond that (RPS § 10 traceability, recording why and what replaces the invoice). It does not say what happens if the invoice is not confirmed, nor what the call returns or how the audit trail is captured.

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 short sentences, each doing a distinct job: what it does, when it is required, and the compliance constraint. The state transition is front-loaded and there is no filler.

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 one-parameter state-transition tool with annotations covering the safety profile, the description covers purpose, prerequisite and compliance duty. It leaves minor gaps: no statement about failure modes (e.g. invoice not confirmed) and no output description, though no output schema exists to compensate.

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% for the single required parameter, so the schema already carries the semantics ('Object ID', positive integer). The description adds no additional meaning about the id beyond the schema, which is the expected baseline 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.

Purpose5/5

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

States a specific verb and resource plus the exact state transition ('Return a confirmed sale invoice to draft status'), which immediately distinguishes it from confirm_sale_invoice and delete_sale_invoice. An agent can pick it out of a sibling list of ~90 tools 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 Guidelines5/5

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

Gives an explicit prerequisite ('Required before delete_sale_invoice against a CONFIRMED invoice'), which both tells the agent when to call this tool and implicitly when not to (draft invoices need no invalidation). The sequencing rule against a named sibling is exactly the kind of routing guidance this dimension rewards.

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

Deploy Server

Other Tools