Skip to main content
Glama

Update draft

solo_update_draft
Destructive

Change a draft: lines, due days, notes. Drafts are the only editable state. Once issued, an invoice is immutable (S-2) — corrections after that are void-and-reissue, on the record. Effects: draft updated, totals recomputed.

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": "solo_update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNoThe new full set of lines (replaces all).
notesNo
subjectNoOne line above the table — project, period.
currencyNoChange the currency of the draft (one of the company's currencies).
invoice_idYesThe draft, e.g. INV-0001.
due_in_daysNoDays until due.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds real value with the "totals recomputed" effect and the immutability rule, but it never warns that supplying `lines` replaces the entire line set (that fact lives only in the schema) or that omitted optional fields may be left untouched.

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?

Four short sentences, front-loaded with the action and fields, then the constraint, then the effect. The cryptic spec reference "(S-2)" and the phrase "on the record" add little for an agent, but nothing is padded.

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 6-parameter mutation tool with no output schema, the description supplies the essential missing pieces: the effect (totals recomputed) and the domain guardrail (drafts only, immutable once issued). Partial-update behavior for optional fields such as `notes` and `due_in_days` is the main remaining gap.

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 description coverage is 83%, and the schema already explains units for qty, cents for rate, basis points for tax_rate_bp, and the replacement semantics of `lines`. The description only lists parameter names ("lines, due days, notes") and adds no format, default, or interaction detail beyond the schema — baseline 3.

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?

"Change a draft: lines, due days, notes" names a specific verb and resource and enumerates the mutable surface, so an agent immediately knows this is an in-place edit of an existing draft. It is clearly separated from issuing (solo_issue_invoice) by the immutability statement, though no sibling is named explicitly.

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?

It states the when-not condition crisply: drafts are the only editable state, and once issued the invoice is immutable, so corrections must go through void-and-reissue. That routes the agent away from editing issued invoices, but it does not name the sibling tools (e.g. void, issue) that implement the alternative path.

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.