Skip to main content
Glama

Väärtpaberiportfell

get_portfolio
Read-onlyIdempotent

Tagasta väärtpaberiportfell (kontod 1110/1115): iga positsiooni kogus, keskmine soetushind, soetusmaksumus, viimane hind ja kuupäev, turuväärtus, realiseerimata ja realiseeritud tulem, teenustasud ja päevamuutus ning portfelli kokkuvõte. FIFO-lottide järgi, summad EUR. Kasuta küsimustele „mis mu portfellis on", „kui palju mu aktsiad väärt on".

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

Input Schema

NameRequiredDescriptionDefault
includeClosedNoKas lisada ka suletud (müüdud) positsioonid. Vaikimisi ainult avatud.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuinely useful behavioral context beyond them: valuation basis is FIFO lots, all amounts are in EUR, and the data source is accounts 1110/1115. It does not say how stale the 'viimane hind' can be or whether the result is paginated/limited in size.

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?

The definition is dense but front-loaded: the returned field set leads, followed by the valuation method/currency and then the usage cue. The enumeration of fields is long but each item is informative rather than filler; there is no redundant restatement of the title.

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?

With no output schema, the description correctly carries the burden of describing return values and does so thoroughly, including currency and FIFO valuation. What is missing is operational context — result size/pagination or freshness of the last price — which matters for an agent assembling an answer.

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 100% and the single parameter includeClosed is fully documented in the schema, including its default of open-only. The description neither repeats nor extends that parameter's meaning, so the baseline of 3 applies.

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 opens with a specific verb and resource ('Tagasta väärtpaberiportfell') and then enumerates exactly what each position contains (quantity, average cost, last price, market value, realized/unrealized P&L, fees, daily change) plus a portfolio summary. The explicit mention of 'portfelli kokkuvõte' and per-position detail separates it from sibling tools like get_position_detail (single position) and get_portfolio_history (time series).

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 concrete trigger phrasings — 'mis mu portfellis on' and 'kui palju mu aktsiad väärt on' — so an agent knows which user intents select this tool. It stops short of naming exclusions or alternatives (e.g. use get_portfolio_history for values over time, get_position_detail for a single holding), leaving that routing to inference.

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