Skip to main content
Glama
finlynq

FinLynq

Official
by finlynq

update_portfolio_holding

Idempotent

Update a portfolio holding's name, symbol, currency, crypto flag, or note. Renames cascade automatically to all transactions.

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.

Input Schema

TableJSON 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
Behavior5/5

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

The description discloses a key behavioral trait: renaming a holding cascades to all transactions because get_portfolio_analysis groups by foreign key, not by string. It also warns about stale rows from account moves, adding value beyond the annotations (which show destructiveHint=false and idempotentHint=true, with no contradiction).

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

Conciseness5/5

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

The description is two sentences plus a clear note, all front-loaded with essential information. Every sentence adds value: purpose, cascade behavior, and refusal warning with alternatives. No extraneous content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters, no output schema, and good annotations, the description adequately covers behavior, cascading effects, and caveats. It explains what happens when renaming, why account moves are refused, and directs to appropriate alternatives. No gaps for an update tool.

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 description coverage is only 43% (3 of 7 parameters have descriptions). The description lists the modifiable fields and explains the refusal of the account parameter, which compensates for missing schema descriptions. However, it could provide more detail on constraints like maxLength for name or note.

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 clearly states the verb 'update' and the resource 'portfolio holding', listing specific modifiable fields (name, symbol, currency, isCrypto, note). It distinguishes itself from siblings like record_transfer and update_transaction by describing their appropriate use cases.

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?

The description explicitly warns against using the legacy 'account' parameter, explains why it is refused, and provides two concrete alternatives: record_transfer for moving shares between accounts and updating transactions individually for re-attribution.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/finlynq/finlynq'

If you have feedback or need assistance with the MCP directory API, please join our Discord server