Skip to main content
Glama

Pinpal Receipts

Update a line

update_line
Destructive

Change a line's status, labels, source, memo, bank account, or (for a hand-made line) its text, date or amount. A status change goes into the thread with its note; not_needed is refused without a note or a label that means no receipt. A note without a status change is posted as a comment. Set done only when the file is the right kind for how the line was paid and its amount, date and merchant match: a card payment needs a receipt or an invoice marked paid; a bank transfer, bankgiro or plusgiro payment takes the supplier's invoice. Done on a card payment whose only files are an unpaid invoice or a notice goes through, with a warning in the answer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
lineNoThe line's ID, like #1042 (list_lines and read_line show it): names the line alone, instead of month and number.
memoNoThe person's own words about the line, replaced whole.
noteNoWhy: where you found the receipt, what matches, or why no receipt is needed.
textNo
monthNoThe month as YYYY-MM, like 2026-09; with number, or give line instead.
amountNo
labelsNoReplaces the line's labels with exactly these. A label that means no receipt (noReceipt) makes the line not_needed, the label the reason (no note needed); taking the last such label off makes it missing again (found with a file).
numberNoThe line's number in the month, like 12; with month, or give line instead.
sourceNoWhere the receipt is found: a source's name or id (list_sources), or none (or null) to clear it. Written into the thread; set by hand, so a carry-over or a rule never changes it.
statusNo
bankAccountNoMove the line to this bank account (name or id), or none to take it off any account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already mark this as a destructive non-read-only mutation, and the description adds substantial behavioral context beyond that: status changes enter the thread with their note, not_needed can be refused, notes become comments, done has file-type requirements, and some done cases emit warnings. This is unusually transparent for a mutation tool.

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 front-loaded with the affected fields and every sentence carries operational meaning. It is dense and could be easier to scan with structured bullets, but it avoids filler and stays appropriately sized for the complexity.

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 12-parameter destructive mutation with no output schema, the description covers the most important caller-facing rules: refusal cases, note behavior, done validation, and warning behavior. It still leaves some gaps around return shape, partial-update semantics, and permission requirements, so it is strong but not complete.

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

Parameters4/5

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

Schema coverage is 67%, and the description adds meaningful cross-parameter semantics: the noReceipt label can set not_needed, source is written into the thread, notes without status become comments, and done depends on amount, date and merchant matching. It does not explain formats for date, text or amount, but it compensates well for most of the schema gap.

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 opens with a specific verb and resource: 'Change a line's status, labels, source, memo, bank account, or ... text, date or amount.' It names the concrete fields affected and the identifier context (line or month/number), so an agent can distinguish this single-line mutation from siblings such as add_line or read_line.

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 gives strong conditional guidance for tricky operations: not_needed is refused without a note or noReceipt meaning, and done is allowed only when files, amount, date and merchant match the payment kind. It also explains that a note without a status change becomes a comment. It does not explicitly route to sibling tools such as add_comment or label_lines, so it falls short of full when-to-use/alternative guidance.

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