Skip to main content
Glama

Set transaction note

set_transaction_note
Destructive

The user's note on a transaction (its source and tx_ref as list_transactions gives them), in the words the user gave for it, ONLY as they said: at most 500 characters, replacing a note an assistant wrote, marked as written through this assistant. Nothing is computed again; removing a note, or changing one the user wrote on the site, is theirs, on the site.

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": {
      "source": "<source>",
      "tx_ref": "<tx_ref>",
      "note": "<note>"
    },
    "name": "set_transaction_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesThe note, in the words the user gave for it: at most 500 characters.
clientNoAn account this user may read as its accountant (a client's ``user_id`` from list_clients). Left out: their own account, which is every private user's case.
sourceYesThe transaction's ``source``, as list_transactions gives it.
tx_refYesThe transaction's ``tx_ref``, as list_transactions gives it.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / note / description
      Added value: +"The note, in the words the user gave for it: at most 500 characters."
    • addedInput schema / properties / source / description
      Added value: +"The transaction's ``source``, as list_transactions gives it."
    • addedInput schema / properties / tx_ref / description
      Added value: +"The transaction's ``tx_ref``, as list_transactions gives it."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=false), the description discloses that this overwrites an assistant-authored note, that the note is attributed as written through this assistant, and that nothing is recomputed. It also carves out refusal territory (removal, user-written notes) that the annotations cannot express. Note a discrepancy worth surfacing: the prose caps the note at 500 characters while the schema allows maxLength 2000.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is compact and front-loads the resource, but it is a single dense sentence with stacked clauses, and the trailing 'removing a note, or changing one the user wrote on the site, is theirs, on the site' is awkwardly worded and repeated. The constraint set is worth stating; the phrasing costs readability.

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?

An output schema exists, so return values need no explanation, and all four parameters are documented in the schema. The description covers attribution, overwrite behavior and scope exclusions. What it leaves out is edge behavior — what happens on an empty existing note, or when the note exceeds the stated 500-character cap given the schema permits 2000.

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 100%, so the schema already documents source, tx_ref, note and client, including that the first two come from list_transactions. The description reinforces the verbatim-wording requirement for note and the 500-character cap, which is real added meaning, but it says nothing about the optional client parameter. Baseline 3 is appropriate when the schema carries most of the load.

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 identifies the resource precisely — a note attached to a transaction keyed by source and tx_ref — and distinguishes it from adjacent operations (removing a note or editing a user-written note happens on the site). The verb itself is only implied ('replacing a note an assistant wrote'), so the agent must infer 'set/write' from the name and title rather than the prose, which keeps it short of a 5.

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 explicit when-not guidance: do not use this to remove a note, and do not use it to change a note the user wrote on the site. It also states the content rule (only the user's own words, never recomputed). It stops short of naming a sibling tool as the alternative, but the exclusions are concrete enough that an agent knows which calls to avoid.

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