Skip to main content
Glama

Update a sales invoice

update_sales_invoice
Idempotent

Update an existing sales invoice by ID to modify lines, dates, or references. Works only for invoices in concept status, ensuring no changes to finalized documents.

Instructions

Update a sales invoice.

Update an existing sales invoice by ID. The invoice must be in concept status.

[Sales Invoices] PUT /invoices/sales/{id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the sales invoice to update.
bodyYes
administrationNoThe client administration to act on. Only one is configured: default.
Install Server

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, readOnlyHint=false, and destructiveHint=false, so the description does not need to repeat those. However, it misses the PUT semantics: the schema's attachments field hint implies a full replacement on PUT, but the description does not state this. The concept-status constraint is useful but not enough to earn a higher score.

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?

The description is concise, with two sentences and an endpoint reference. It front-loads the action and resource, then adds the critical status condition. No redundant words or filler. The structure is efficient and easy to scan.

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

Completeness3/5

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

Given the detailed input schema and annotations, the description is mostly sufficient, but it fails to disclose the PUT replacement behavior, which significantly impacts how an agent constructs the body. It also does not mention return values or error conditions for non-concept-status invoices. The missing PUT semantics is a notable gap in a complete context.

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?

The description mentions updating 'by ID', which maps to the id parameter, and the schema covers all parameters with detailed nested descriptions. Schema description coverage is 67%, and the description adds no extra meaning beyond the schema. The schema's comprehensive field-level documentation carries the bulk of semantic value.

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?

The description states a clear verb ('Update') and resource ('a sales invoice'), and specifies the operation is done by ID. It also names siblings like create_sales_invoice and get_sales_invoice, and the 'by ID' qualifier distinguishes it from creation or listing. The requirement for concept status further clarifies what this tool does.

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?

The description gives a clear context: the invoice must be in concept status, which is a key prerequisite. It does not explicitly mention when to use this over alternatives, but the update semantics are self-evident and the status condition provides practical guidance. No exclusions or alternatives are named, but the single constraint is enough for a clear use case.

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

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/vladxyz/informer-mcp'

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