Skip to main content
Glama

Analyze supplied portfolio holdings

analyze_portfolio
Read-onlyIdempotent

Run the existing Portfolio API for up to 50 supplied stock holdings with shares and optional per-share cost basis. Requires portfolio consent and existing service access/API allowance. Does not save a portfolio, place orders or synchronize a broker. Saved option holdings can be read with read_portfolio; this API accepts the existing stock-holdings contract. API reference: https://www.signaldock.app/developers/openapi.json.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "holdings": "<holdings>"
    },
    "name": "analyze_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoObject keys or array indices from the returned field directory. Empty selects the root.
limitNo
offsetNo
holdingsYes
benchmarkNo

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=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value with the 50-holding cap, consent/API-allowance preconditions, and explicit non-mutation guarantees, but says nothing about the shape or cost of the returned analysis, which matters for a no-output-schema tool.

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?

Front-loaded with the action and input contract, followed by preconditions and exclusions, with no filler sentences. The single API-reference URL is the only arguably extraneous element and it is short.

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?

For a read-only, consent-gated analysis call with no output schema and five parameters, the definition covers inputs, limits, prerequisites, and negative behavior well. The gaps are the undocumented benchmark/limit/offset parameters and the absence of any statement about what the analysis returns.

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?

Schema description coverage is only 20% (only `path` is documented), so the description must compensate: it explains the holdings array shape (symbol, shares, optional per-share cost basis) and the 50-item cap. It never mentions `benchmark`, `limit`, or `offset`, leaving three parameters with no meaning anywhere in the definition.

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 names a specific action (running the Portfolio API analysis) on a specific resource (up to 50 supplied stock holdings with shares and optional per-share cost basis), and explicitly separates itself from read_portfolio, which reads saved option holdings. It stops short of saying what the analysis returns, so the purpose is clear but not fully concrete.

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 states prerequisites (portfolio consent, existing service access/API allowance) and explicit exclusions (does not save a portfolio, place orders, or synchronize a broker), which tells the agent when not to reach for it. It names read_portfolio as the alternative for saved option holdings, though it does not route to siblings for analysis of saved stock portfolios.

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