Skip to main content
Glama

Update invoice line

update_invoice_line
Idempotent

Partially update an invoice line item — only provided fields change.

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": {
      "line_id": "<line_id>"
    },
    "name": "update_invoice_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNo
line_idYes
agent_idNo
positionNo
quantityNo
entry_typeNo
unit_priceNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false and openWorld=false, so the safety profile is covered. The description adds genuine value beyond that by disclosing PATCH-style partial-update behavior, but says nothing about error handling for invalid line_id, permission requirements, or whether omitted fields are left untouched versus reset.

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?

A single front-loaded sentence with no wasted words, and the partial-update qualifier appears immediately. Brevity is close to under-specification rather than verbosity, but structurally it is clean.

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

Completeness2/5

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

For a mutation tool with 8 undocumented parameters and no output schema, one sentence is not enough. An agent still lacks the meaning of most parameters and any statement of what the update returns or how failures surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description carries the full burden and largely does not meet it. It conveys that all fields except line_id are optional, but adds no meaning for ambiguous parameters such as unit versus unit_price, entry_type, position, or agent_id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

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

States a specific verb and resource ('partially update an invoice line item') and the patch semantics distinguish it from a full replace. It does not, however, differentiate itself from the sibling update_invoice, which targets the invoice header rather than a line, leaving that distinction to be inferred from the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase 'only provided fields change' implies this is the tool for incremental edits, which is useful usage context. There is no explicit when-to-use versus create_invoice_line/delete_invoice_line/update_invoice, and no mention of prerequisites such as the line needing to exist.

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