Skip to main content
Glama

Realiseeritud tulem

get_realized_gains
Read-onlyIdempotent

Tagasta realiseeritud tulem (FIFO, konto 5520) müükidest perioodis: iga müügi kuupäev, instrument, kogus, müügisumma ja tulem ning kokkuvõte instrumentide kaupa. Kasuta küsimustele „palju ma aktsiamüügist sel aastal kasumit teenisin".

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_realized_gains"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToNoLõppkuupäev YYYY-MM-DD (kaasa arvatud)
dateFromNoAlguskuupäev YYYY-MM-DD (kaasa arvatud)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare this a safe, idempotent, closed-world read, so the description's real contribution is disclosing the FIFO cost-basis method, the 5520 account mapping, and the shape of the results including a per-instrument aggregation. That is meaningful behavior beyond structured metadata. The gap is that both date parameters are optional yet the description never says what period is assumed when they are omitted.

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?

Two sentences, zero filler: the first front-loads the operation, its accounting method, and the exact output contents; the second supplies the use case. Nothing is repeated from the annotations or schema.

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 compensates well by listing what each row and the summary contain, which is exactly what an agent needs to report results. The one omission is the behavior when the optional date range is left empty, which matters for a period-scoped tool. Note also that the description is in Estonian while the tool name is English, which is a mild consistency wrinkle rather than a completeness gap.

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 coverage is 100%, with both dateFrom and dateTo documented as inclusive YYYY-MM-DD bounds, so the schema already carries the parameter meaning. The description only frames them collectively as "perioodis" without adding formatting, ordering, or default-value detail. Baseline 3 applies when the schema does the heavy lifting.

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 description uses a clear verb+resource ("Tagasta realiseeritud tulem" / return realized result) and pins down the calculation basis (FIFO, account 5520) and the source (sales within a period), so the purpose is unambiguous. It even enumerates the returned fields (date, instrument, quantity, sale amount, gain, per-instrument summary). It stops short of explicitly differentiating itself from adjacent siblings such as get_investment_income or get_portfolio_returns, so an agent must infer the boundary.

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?

The final sentence gives a concrete triggering question ("how much profit did I make from stock sales this year"), which clearly establishes the intended use context. There are no explicit exclusions or named alternatives for overlapping reporting tools, so the guidance is contextual rather than routing-grade.

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