Skip to main content
Glama

ValuEdge MCP — Stock Valuation, Screener & Portfolio Research

Edit one manual BUY transaction

edit_my_portfolio_transaction
DestructiveIdempotent

Adjust quantity and entry price of one exact manually recorded BUY transaction by its ID. This changes displayed manual holdings and is not a brokerage trade. Check the user's prior record and confirm the intended correction; synced and imported transactions cannot be changed.

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": {
      "transaction_id": "<transaction_id>",
      "quantity": "<quantity>",
      "price_per_share": "<price_per_share>",
      "expected_quantity": "<expected_quantity>",
      "expected_price_per_share": "<expected_price_per_share>"
    },
    "name": "edit_my_portfolio_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityYes
operation_idNo
transaction_idYes
price_per_shareYes
expected_quantityYes
expected_price_per_shareYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / error / properties / retry_after_ms
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered; the description adds real value by explaining the blast radius ("changes displayed manual holdings and is not a brokerage trade") and the provenance restriction (synced/imported are immutable). It says nothing about the optimistic-concurrency precondition implied by the expected_* fields, which is where most failure modes will occur.

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?

Three short sentences, no filler, and the identifying scope plus the mutation's reach are front-loaded before the confirmation caveat. Every clause carries distinct information.

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?

The description is adequate on scope, side effects, and eligibility, and an output schema plus annotations cover the response and safety profile. However, for a destructive edit requiring five required parameters, leaving the expected_* preconditions and operation_id unexplained is a material gap for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry parameter meaning, and it only loosely covers three of six: transaction_id ("by its ID"), quantity, and price_per_share ("entry price"). The two most non-obvious parameters, expected_quantity and expected_price_per_share, are never mentioned, nor is operation_id's idempotency role, leaving an agent to guess that the expected_* values act as a stale-read guard.

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?

States a specific verb ("Adjust quantity and entry price") against a precisely scoped resource ("one exact manually recorded BUY transaction by its ID"), which already rules out synced/imported records. It never names record_my_portfolio_transaction or remove_my_portfolio_transaction, but the manual-BUY scoping does most of the sibling differentiation work.

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?

"Check the user's prior record and confirm the intended correction" gives an explicit pre-call workflow, and "synced and imported transactions cannot be changed" gives a clear when-not condition. What's missing is what to do instead when the user wants to change a synced transaction or fields other than quantity/price (e.g., remove-and-rerecord).

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.