Skip to main content
Glama

Edit an asset

edit_asset
Destructive

Edit quantity, acquisition date, acquisition price or category of an identified hand-added asset. Category is the investing category, separate from market sector; empty means Other. Imported transactions are not editable here, so the same ticker in imported accounts never makes a target ambiguous; ambiguous targets fail closed. id picks one exact entry: the entryId an add returned (what “this” or “the new one” refers to right after an add), or an id an ambiguity error listed.

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": "edit_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
dateNo
nameNo
priceNo
symbolNo
categoryNo
quantityNo
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description adds genuinely useful behavior not in the annotations: failure is fail-closed on ambiguous targets, and how id resolves an exact entry across repeated tickers. It does not say whether edits are reversible, whether an approval prompt intervenes, or what a partial update leaves untouched.

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?

Four dense sentences, front-loaded with what the tool does before the constraints, and every clause carries information — the 'this'/'the new one' gloss is genuinely useful for an agent resolving a follow-up reference. Slightly heavy going, but nothing is padding.

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?

This is a destructive mutation with ten parameters, all optional, and no output schema. The description covers target resolution and category meaning but never says whether omitted fields are left untouched (patch semantics), what expectedRevision or idempotencyKey do for concurrency and retry, or what the response contains.

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 only 10%, so the description carries most of the burden. It explains id well (the entryId an add returned, or one from an ambiguity error) and clarifies category semantics (investing category, not market sector; empty means Other). However, name, symbol, idempotencyKey and expectedRevision are undocumented in both places, and the description's field list omits name/symbol that the schema accepts, leaving ambiguity about the full editable surface.

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 opening sentence names a specific verb (Edit), a specific resource (an identified hand-added asset), and enumerates the mutable fields (quantity, acquisition date, acquisition price, category). It draws a boundary against imported transactions, which separates it from add_market_asset-style flows, though no sibling tool is named explicitly.

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 a clear when-not (imported transactions are not editable here) and explains the target-selection rule for id, including that ambiguity fails closed rather than guessing. It stops short of naming the alternative tool an agent should call for imported holdings, or of stating whether add/set_asset_target should be used instead for other edits.

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.