Skip to main content
Glama
lazyants

lexware-mcp-server

by lazyants

Pursue to a Credit Note

lexware_pursue_credit_note
Destructive

Create a credit note as a follow-up to a specified invoice, with the option to finalize it immediately or save as a draft.

Instructions

Create a new credit note as a follow-up to a preceding invoice. Maps to the documented POST /credit-notes?precedingSalesVoucherId={id}[&finalize=true] endpoint. Set finalize=true to immediately finalize the credit note; omit or false to create as draft.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
precedingSalesVoucherIdYesUUID of the preceding invoice that this credit note is pursued from.
bodyYesCredit note JSON body. Same shape as lexware_create_credit_note. See Lexware API docs for full schema.
finalizeNoWhen true, creates the credit note in finalized status (immediately paid-off, reducing the invoice open amount). When false or omitted, creates as draft. Maps to the documented ?finalize=true query parameter.
Behavior4/5

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

Annotations declare destructiveHint=true, which aligns with 'Create' in description. Description adds details on finalization behavior and API mapping, providing additional context beyond annotations.

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 concise sentences with key information front-loaded. No filler, each sentence adds value.

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?

Covers necessary inputs and key behavioral option (finalize). Lacks mention of return value or output shape, but overall sufficient for a straightforward create tool.

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%, so baseline is 3. Description adds context for 'finalize' and the overall purpose but adds little to the 'body' parameter beyond schema. Acceptable but not exceptional.

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?

Clearly states verb 'Create' and resource 'credit note' with specific context 'as a follow-up to a preceding invoice'. Distinguishes from sibling 'create' tools by emphasizing the pursuit relationship, and from other 'pursue' tools by specifying the resource.

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?

Provides explicit guidance on when to use (follow-up to an invoice) and details on the 'finalize' parameter. Lacks explicit alternatives or when-not-to-use, but the naming and context sufficiently differentiate from siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lazyants/lexware-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server