Skip to main content
Glama

Measure a portfolio

measure_portfolio
Read-onlyIdempotent

The complete measurement of one portfolio in a single call: how many independent bets it holds, which holding carries risk out of line with its money, the companies owned through its funds, what past crises did to it and how long it took to come back, and the numbered report. Use it when the reader asks broadly about a portfolio; for one question the narrower tools answer faster: portfolio_structure, look_through, past_crises, portfolio_report. Give amounts to get losses in money; base sets that currency (default USD). Descriptive: no forecast, no advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoCurrency every figure is expressed in (USD, EUR, GBP, CAD…). Default USD.
holdingsYesWhat is held: {ticker: weight or amount}. Weights need not sum to one; amounts in the base currency are also accepted (then the crises are shown in money). 1 to 100 holdings. Tickers as the exchange lists them (VOO, VWCE.DE, XAW.TO; 'CASH.USD' for cash).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
_fenceYesWhat these figures are and are not: descriptive, no forecast, no advice. Repeat its sense when presenting the result.
reportNoThe numbered report: every figure beside its method.
stressNoWhat past crises did to this mix, replayed on its holdings.
structureNoHow many independent bets the holdings add up to and who carries the risk.
lookthroughNoWhat the portfolio owns through its funds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the bar is lower; the description adds real behavioral context by declaring the tool descriptive ('no forecast, no advice') and explaining that supplying amounts switches the crisis output into money terms. It does not cover latency, aggregation limits, or failure behavior, but for a read-only aggregate nothing critical is missing.

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 core purpose and the routing rule; every sentence carries information. The output enumeration slightly duplicates the output schema, and the sentence is long, but there is no filler.

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?

For a 2-parameter tool with one required nested object, an output schema, and full annotation coverage, the description supplies everything else needed: scope, routing, descriptive framing, and the amount-vs-weight consequence. Nothing required to call it correctly is absent.

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 coverage is 100%, so the baseline is 3, but the description frames the weight-vs-amount parameter decision as an output-selection choice ('Give amounts to get losses in money') rather than raw syntax — a meaning an agent can act on without reading the schema. The base currency note largely restates the schema, which caps the score below 5.

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 verb and resource ('complete measurement of one portfolio in a single call') and then enumerates the exact outputs (independent bets, risk-out-of-line holding, look-through companies, crisis drawdown/recovery, numbered report). This lets an agent distinguish it from siblings like portfolio_structure or past_crises without opening any schema.

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

Usage Guidelines5/5

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

Explicit routing rule: 'Use it when the reader asks broadly about a portfolio; for one question the narrower tools answer faster' followed by the four named alternatives. Both the when and the when-not (with named substitutes) are given.

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