Skip to main content
Glama

ValuEdge Stock Research MCP

Edit one manual BUY transaction

edit_my_portfolio_transaction
Idempotent

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. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds real value beyond them: the change affects only displayed manual holdings, it is not a brokerage trade, and the target must be a manual record. It does not explain the concurrency/locking behavior implied by the expected_* parameters or how operation_id is used for retries, which would matter for a mutation tool.

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 tight sentences with no waste: the action and scope come first, the user-facing effect second, and the precondition/constraint last. Every clause supplies information the agent needs.

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 presence of an output schema and informative annotations means the description needn't cover return values or safety, and it handles the manual-vs-synced distinction well. However, for a six-parameter mutation tool with no schema descriptions, omitting any explanation of the expected_* concurrency parameters and operation_id leaves a meaningful gap in what an agent needs to invoke it correctly.

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 description coverage is 0% across six parameters, so the description carries the burden, and it only clarifies transaction_id and implicitly quantity and price_per_share. The three most error-prone parameters — expected_quantity, expected_price_per_share (clearly optimistic-concurrency guards) and operation_id (an idempotency key) — are never mentioned, leaving the agent to guess at their purpose and at what happens on a mismatch.

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 names a specific verb (adjust), an exact resource (one manually recorded BUY transaction identified by ID), and scopes the fields touched (quantity and entry price). It also disambiguates this from a real brokerage trade and from synced/imported records, so an agent can tell it apart from record_my_portfolio_transaction and remove_my_portfolio_transaction.

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 clear when-to-use context (correction of a manual BUY entry) and an explicit exclusion (synced and imported transactions cannot be changed), plus a procedural instruction to check the prior record and confirm the correction. What it lacks is routing to alternatives — for example, directing the agent to record_my_portfolio_transaction for a new entry or remove_my_portfolio_transaction to delete one.

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