Skip to main content
Glama

Agent Rynku - Warsaw Stock Exchange (GPW) data for your agent

submit_portfolio_snapshot

Wgranie stanu rachunku z zewnętrznego brokera.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNo
brokerYesBroker identifier: 'xtb', 'bossa', 'mbank', etc.
accountYesAccount identifier: number, alias, or ''.
asOfIsoYesISO 8601 timestamp from broker API.
cashPLNNoPLN cash balance (optional, legacy single-currency field).
holdingsYes
cashByCurrencyNoNative multi-currency cash, keyed by ISO code, e.g. {"PLN": 22578, "USD": 144}. Preferred over cashPLN for multi-currency accounts (keeps USD/EUR cash in native currency — no manual FX conversion). Values are numbers or null; non-ISO keys ignored.
totalEquityPLNNoTotal equity for sanity check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations state readOnlyHint=false, so the agent knows this is a write operation, and the description's 'uploading' wording matches that. However, the description does not disclose whether the snapshot replaces existing data, whether validation failures are surfaced, or what side effects the submission has on historical snapshots.

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 description is a single, grammatically simple sentence with no filler or repetition. It is not bloated, though its brevity comes at the cost of missing behavioral and usage details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutating tool with nested holdings and no output schema, one sentence is insufficient. It does not explain what a successful submission returns, how the snapshot interacts with existing portfolio data, or what validation occurs. The rich schema covers parameter meaning, but not call-level behavior.

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?

The description adds only general context (external broker, account state) and no parameter-level meaning. The input schema already documents 75% of parameters in detail, including cashByCurrency and totalEquityPLN, so the description does not need to carry the full parameter burden, but it also does not add value beyond the schema.

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 specific action ('Wgranie' – uploading) and a specific resource ('stan rachunku' – account state) from an external broker, so the core purpose is clear. It does not explicitly differentiate from close siblings like submit_broker_transactions or set_cash_balance, but the 'account state' wording does separate it from transaction-level imports.

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

Usage Guidelines2/5

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

No when-to-use or alternative guidance is present. The description only states what the tool does; it does not say to prefer this over submit_broker_transactions for full snapshots, nor does it explain how this relates to set_cash_balance or modify_holdings.

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.