Skip to main content
Glama

Update project invoice

update_project_invoice
Idempotent

Change an invoice — typically its status and what was paid. Setting status 'paid' without paid_amount takes the net amount as paid, and without paid_on takes today.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "update_project_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
due_onNo
statusNo
paid_onNo
file_urlNo
issued_onNo
period_idNo
invoice_idYes
net_amountNo
vat_amountNo
paid_amountNo
gross_amountNo
milestone_idNoThe MILESTONE this invoice settles. Contract research is invoiced per milestone, grant work per reporting period — both may be set. Without this link the financial view cannot compute what has actually been PAID, only what has been accepted, and an acceptance is not a payment.
invoice_numberNo
counterparty_nameNo
counterparty_company_idNo

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?

The description adds useful behavioral detail beyond the annotations: setting status 'paid' without paid_amount defaults to the net amount, and without paid_on defaults to today. With annotations already covering idempotency and non-destructiveness, this is valuable, but it does not explain partial-update behavior, validation rules, or consequences of status changes.

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?

The description is two tight sentences with no filler and front-loads the core operation. The second sentence is dense but earns its place by documenting the key defaulting behavior.

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?

This is a 16-parameter mutation tool with no output schema and very low schema description coverage. The description covers only a narrow defaulting rule and gives no guidance on most parameters, partial updates, or expected effects, so it is incomplete for the tool's complexity.

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 only 6%, so the description must compensate for 16 mostly undocumented parameters. It explains the interaction between status, paid_amount, paid_on, and net_amount, but leaves due_on, issued_on, file_url, period_id, invoice_number, counterparty fields, and others without semantic guidance.

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?

The description clearly states a specific verb and resource: changing an invoice. It implicitly distinguishes from create/delete siblings through the verb 'change,' but does not explicitly name or contrast alternatives.

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 'typically its status and what was paid' gives implied usage context for common edits. However, there is no explicit when-to-use guidance, no when-not guidance, and no named alternative for creating or deleting invoices.

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