Skip to main content
Glama
FinLynq

FinLynq

Official
by finlynq

update_portfolio_holding

Idempotent

Update a portfolio holding's name, symbol, currency, crypto status, or note; renames cascade to linked transactions automatically.

Instructions

Update a portfolio holding's name, symbol, currency, isCrypto, or note. Renames cascade to all transactions automatically because get_portfolio_analysis groups by FK, not by string. NOTE: the legacy account parameter is REFUSED (issue #99) — moving a holding to a different account would leave stale holding_accounts rows and broken transaction account attribution. To move shares between accounts use record_transfer (in-kind); to re-attribute existing transactions update them individually.

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": {
      "holding": "<holding>"
    },
    "name": "update_portfolio_holding"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
noteNo
symbolNoPass empty string to clear
accountNoREFUSED (issue #99): account moves create stale state. Use record_transfer (in-kind) instead.
holdingYesCurrent holding name OR symbol (fuzzy matched)
currencyNo
isCryptoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.6.0
    • removedInput schema / properties / currency / enum
      Removed value: -[
      -  "USD",
      -  "CAD",
      -  "EUR",
      -  "GBP",
      -  "JPY",
      -  "AUD",
      -  "CHF",
      -  "NZD",
      -  "CNY",
      -  "HKD",
      -  "SGD",
      -  "SEK",
      -  "NOK",
      -  "DKK",
      -  "PLN",
      -  "CZK",
      -  "HUF",
      -  "RON",
      -  "TRY",
      -  "ILS",
      -  "ZAR",
      -  "INR",
      -  "KRW",
      -  "THB",
      -  "IDR",
      -  "MYR",
      -  "PHP",
      -  "MXN",
      -  "BRL",
      -  "ARS",
      -  "COP",
      -  "CLP",
      -  "BTC",
      -  "ETH",
      -  "USDC",
      -  "USDT",
      -  "XAU",
      -  "XAG",
      -  "XPT",
      -  "XPD"
      -]
    • addedInput schema / properties / currency / pattern
      Added value: +"^[A-Z]{3,4}$"
  2. First observedv3.4.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say it's a non-destructive, idempotent write; the description adds the critical behavioral fact that renames cascade to all transactions (via FK grouping), and explains why account moves are refused (stale holding_accounts rows, broken attribution). That is real context an agent cannot get from the annotation block.

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?

Front-loaded with the operation, then a NOTE block, then alternatives — a clean structure with no filler. The middle sentence's rationale clause is dense but earns its place by justifying the cascade behavior.

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 non-destructive, idempotent mutation with no output schema, the description covers cascade effects, the hard refusal, and remediation paths. It doesn't address what happens on ambiguous fuzzy matches or duplicate symbols, which is the one thing an agent might still need.

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 only 43%, so the description has to compensate — and it does for five of seven params, including the refusal rationale for `account` that duplicates and reinforces the schema note. It leaves `holding` (the required fuzzy-matched selector) and field-clearing behavior to the schema, which is a minor remaining 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?

States a specific verb and resource plus the exact updatable fields (name, symbol, currency, isCrypto, note), so the agent knows precisely which mutations this tool covers versus add_portfolio_holding or delete_portfolio_holding.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly rules out a use case (account moves are REFUSED, issue #99) and names two concrete alternatives: record_transfer for in-kind share moves and update_transaction for re-attributing existing transactions. This is when/when-not/alternatives in one place.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools