Skip to main content
Glama

Open a portfolio audit

get_portfolio_audit
Read-onlyIdempotent

Open one sealed portfolio audit (InvestIQ audit v2): health score and the six pillars, the findings in the app's own words with the holdings they affect, risk as money (1-in-20-day loss, worst drawdown), key metrics, what changed since the previous audit, the analyst's read if written, and tonight's pulse. Latest audit of the primary portfolio by default; pass audit_id (from list_portfolio_audits) or a portfolio. Read-only — audits are run in the app.

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

Input Schema

NameRequiredDescriptionDefault
audit_idNoAn audit id from list_portfolio_audits
portfolioNoA portfolio name or id (its latest audit)

Output Schema

NameRequiredDescriptionDefault
okYesfalse on an error; then `error` says what happened and what to do.
cardNoThe in-chat InvestIQ card, in English and French.
dataNoThe tool's own result fields.
toolYes
as_ofYesISO time the data was computed (a stored analysis: when it was computed).
errorNo
linksNoInvestIQ pages for this result.
degradedNotrue when part of the data was missing.
viz_specNoThe recommended chart's series (data only).
disclaimerYes
data_qualityNoWhat was requested, what was used, and why anything was left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false; the description adds real context beyond them: audits are sealed snapshots, they cannot be created here (run in the app), and the no-argument call resolves to the primary portfolio's latest audit. It does not say what happens on an unknown audit_id or an ambiguous portfolio name, which is the main residual gap.

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 action, then defaults, then the read-only constraint — good ordering with no filler. The long mid-sentence inventory of return contents is slightly redundant given an output schema exists, costing a point on tightness.

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 an output schema present, the description needn't detail return values, and it still covers defaulting, parameter sourcing, and immutability. Only failure modes (unknown audit_id, no audit exists yet for a portfolio) are unaddressed, which is a modest omission for a read-only lookup.

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 neither parameter needs re-explaining; the description earns credit by adding resolution semantics the schema lacks — portfolio resolves to 'its latest audit' and omitting both falls back to the primary portfolio's latest. It does not clarify whether portfolio accepts a name or id differently in edge cases, but that is largely covered by the schema.

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?

Specific verb plus resource: 'Open one sealed portfolio audit (InvestIQ audit v2)', followed by an enumeration of the payload (health score, six pillars, findings, risk as money, changes since previous audit, analyst read, tonight's pulse). It also disambiguates from the run/list siblings by noting the audit is 'sealed' and 'audits are run in the app', so an agent can tell this apart from run_portfolio_audit without opening either schema.

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?

Explicit defaulting rule — 'Latest audit of the primary portfolio by default; pass audit_id (from list_portfolio_audits) or a portfolio' — tells the agent when the tool works with zero arguments and when to supply one. 'Read-only — audits are run in the app' implicitly routes write intent elsewhere, but it never names run_portfolio_audit explicitly, so the alternative is only implied.

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