Skip to main content
Glama

AlgoVesta MCP Trading

get_portfolio_context

Read-onlyIdempotent

Normalized portfolio view of all connected exchange accounts + MT5 + paper.

Takes no parameters; returns ONLY the accounts of the user whose key the
connection was made with.

IMPORTANT (crypto accounts): "balance"/"equity" is the futures wallet ONLY.
The spot wallet balance is in the separate "spot_balance" field (there MAY be
money on spot even when futures shows 0 — check spot_balance before telling a
user they have no balance).

IMPORTANT (forex/MT5 accounts): check the "positions_source" field on each
account. "live_ea" means the position list is real data verified by the MetaTrader 5
Expert Advisor (EA) AlgoVesta runs on its managed terminal.
"unavailable" means the EA/terminal could not be reached — in that case
positions=[] does NOT mean "no open positions", only that it could not be
verified: the open-position state of that account is unknown at that moment, not
empty.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, so the safety profile is covered; the description adds genuinely non-obvious behavior instead of repeating it. It warns that crypto 'balance'/'equity' is the futures wallet only with spot held separately in 'spot_balance', and that for MT5 accounts positions_source='unavailable' means positions=[] is unverified, not empty. Those are semantic traps an agent would otherwise fall into.

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?

Front-loaded with the one-line purpose, then organized into two labeled IMPORTANT blocks keyed to account type. Some capitalization and emphasis are heavy, but every sentence carries a distinct caveat an agent would misread without, so there is little waste to cut.

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

Completeness5/5

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

No output schema exists, so the description must carry the return-value semantics, and it does: it names the key fields (balance, equity, spot_balance, positions_source, positions) and explains how to interpret their edge-case values per account type. For a zero-parameter read tool with no output schema, this is complete enough to call and interpret correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the baseline is 4; the description explicitly confirms it takes no parameters and is implicitly scoped by the connection key, which is useful framing. No additional parameter-level detail is possible or needed here.

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?

States a specific resource and scope up front: a normalized portfolio view across connected exchange accounts, MT5, and paper. The second sentence pins the scope to the calling user's accounts only, which is exactly the distinction needed against siblings like get_trade_history or list_open_orders that operate on other slices of the same domain.

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?

Gives clear context for when this is the right call (broad portfolio state across all venues) and explicitly rules out parameterized filtering by noting it takes none and is scoped to the caller's key. It stops short of naming an alternative tool or stating when-not to use this, so it does not reach the explicit when/when-not/alternatives bar.

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.