Skip to main content
Glama

Positsiooni FIFO-lotid

get_position_detail
Read-onlyIdempotent

Tagasta ühe väärtpaberi FIFO-lotid (ostu kuupäev, kogus, alles jäänud kogus, soetusmaksumus) ja hinnaseeria kokkuvõte. Anna securityId (get_portfolio vastusest) või ticker.

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

Input Schema

NameRequiredDescriptionDefault
rangeNoAjavahemik: 1m, 3m, 6m, ytd (aasta algusest), 1y, all (kogu ajalugu). Vaikimisi 1y.
tickerNoInstrumendi ticker, nt AAPL (kui securityId puudub)
securityIdNoInstrumendi id get_portfolio vastusest

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 this a read-only, idempotent, non-destructive, closed-world operation, so the safety profile is covered. Beyond that, the description discloses the returned data shape (FIFO lot fields plus a price-series summary) and the upstream dependency on get_portfolio, which is genuinely useful since no output schema exists. It does not cover edge behavior such as what happens when neither securityId nor ticker is supplied despite zero required parameters.

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, front-loaded with the resource being returned, then the identifier requirement. The parenthetical field list is dense but every element earns its place by naming an actual returned value.

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 carries the return-value burden and does name the FIFO lot fields, though the 'price series summary' contents remain vague. The identifier precondition is stated, but the ambiguity of zero required parameters (neither securityId nor ticker mandatory) is left unaddressed.

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%: all three parameters, including the range enum values and the default of 1y, are documented in the schema itself. The description restates the securityId-from-get_portfolio sourcing and the ticker fallback, which the schema already states verbatim, so it adds little new meaning. Baseline 3 applies.

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 and resource: returns the FIFO lots of a single security (with enumerated sub-fields: purchase date, quantity, remaining quantity, acquisition cost) plus a price-series summary. It is clearly narrower than the portfolio-wide siblings such as get_portfolio, but it does not explicitly contrast itself with adjacent per-security analytics tools like get_realized_gains.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description tells the agent which identifier to supply and where securityId comes from (get_portfolio), which implies the intended workflow. However, it gives no explicit when-to-use vs. when-not-to-use guidance and names no alternative tool for related questions, leaving selection 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