Skip to main content
Glama

Pinpal Receipts

Add a line

add_line

A line the statement does not have: cash, or something paid another way. Date YYYY-MM-DD inside the month, the text (who was paid), a signed amount (negative is money out).

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": {
      "month": "<month>",
      "date": "<date>",
      "text": "<text>",
      "amount": "<amount>"
    },
    "name": "add_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
memoNo
textYes
monthYesThe month as YYYY-MM, like 2026-09.
amountYesNegative for money out, positive for money in.
labelsNoLabel names (or ids) that already exist in the account. Unknown names are refused; see list_labels.
sourceNoWhere the receipt is found: a source's name or id, from list_sources.
currencyNoThree letters; defaults to the bank account's currency.
bankAccountNoA bank account's name (like "Swedbank SEK") or id; see list_bank_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write, and the description is consistent with them. Beyond that, it discloses one real behavioral constraint: the date must fall inside the given month. It says nothing about validation failures, what happens to the created line, or whether duplicate lines are permitted — meaningful gaps for a mutation tool with no output schema.

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?

Two short sentences with no padding, and the scope statement leads. The telegraphic fragment style ('cash, or something paid another way') costs some clarity, and the ordering puts parameter glosses ahead of a clear action statement.

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?

For a nine-parameter write tool with no output schema, the description covers only the core three fields plus the month constraint. It omits what a successful call returns, whether the new line is validated against the month, and how the optional linking fields (source, bankAccount, labels) affect behavior — the schema partially fills these, but behavior after creation is unexplained.

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?

With 67% schema coverage, the description compensates well for the most error-prone fields: text is glossed as 'who was paid', amount as 'a signed amount (negative is money out)', and date as YYYY-MM-DD that must sit inside the month. It adds nothing for the optional memo, labels, source, currency, or bankAccount parameters, but those are documented in the schema.

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

Purpose3/5

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

The description defines the resource as a line, specifically 'a line the statement does not have', which usefully distinguishes a manually added line from ones imported or read via list_lines/read_line. However, no verb ever appears (add/create), so the action itself is left to the title and annotations; the fragment 'cash, or something paid another way' is circular rather than clarifying.

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?

'A line the statement does not have' implicitly encodes when-to-use: when the line is absent from the imported statement, as opposed to update_line for existing ones. It never names update_line or any alternative, states no prerequisites, and gives no exclusion for when the line already exists.

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