Skip to main content
Glama

Run a portfolio audit

run_portfolio_audit

Run a NEW sealed InvestIQ portfolio audit — the same engine and the same monthly allowance as the portfolio's Audit tab in the app (Pro: 10 a month, Ultra: unlimited; not in the Free plan): health score and six pillars, findings with the holdings they affect, risk in money, what changed since the previous audit. COSTS 1 portfolio audit; refunded if the audit cannot run; the same portfolio again within 15 minutes returns that audit without a second charge. Deterministic, no AI model. Primary portfolio by default; pass portfolio (a name or id) for another. get_portfolio_audit reads past audits for free; audit_portfolio gives a free live snapshot (concentration, sectors).

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": "run_portfolio_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
portfolioNoA portfolio name or id; the primary portfolio when omitted

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.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the credit cost, refund on failure, and a 15-minute dedupe window where a repeat returns the same audit without a second charge. Also notes the engine is deterministic with no AI model, which sets expectations about variance — none of this is in the structured fields.

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?

Dense but front-loaded: what it does, then cost/plan rules, then sibling routing. Slightly over-packed as one block, and the "same engine and same monthly allowance as the Audit tab in the app" clause is the least essential sentence, but nothing is 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 one-parameter, no-destructive, credit-consuming run tool, the definition covers cost, plan eligibility, dedupe behavior, defaulting, and free alternatives. With an output schema present, it correctly does not spend space explaining return structures.

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?

Schema coverage is 100% and the single parameter's schema description already says it accepts a name or id and defaults to the primary portfolio. The description restates the same fact ("Primary portfolio by default; pass portfolio (a name or id)") without adding new semantics such as format examples or resolution rules.

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+resource ("Run a NEW sealed InvestIQ portfolio audit") followed by concrete outputs (health score and six pillars, findings with affected holdings, risk in money, deltas since previous audit). It explicitly disambiguates from siblings: get_portfolio_audit reads past audits for free, audit_portfolio gives a free live snapshot.

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?

States when to use it versus named alternatives, plus the guardrails that matter for choosing: Pro 10/month, Ultra unlimited, not available on Free, primary portfolio by default or pass portfolio for another. Exclusions and alternatives are both explicit.

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