Skip to main content
Glama

Portfolio snapshot

audit_portfolio
Read-onlyIdempotent

Audit the signed-in user's PRIMARY active portfolio by default (archived/deleted portfolios excluded): concentration (HHI), largest position, top-3 weight, sector exposure, same-ticker overlap, holdings with a conviction below 40 (the lowest band), factual top-risk observations. Use for 'audit my portfolio', 'how risky is my portfolio', 'am I diversified', 'sector exposure'. Pass portfolio (a name, or 'all') only when the user asks for the others. Requires the user to be connected.

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

Input Schema

NameRequiredDescriptionDefault
portfolioNoOptional: a portfolio name, or 'all' for every active portfolio. Defaults to the user's primary — only widen when the user explicitly asks.

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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description still adds useful behavior: archived and deleted portfolios are excluded from the default scope, and an authentication/connection prerequisite is stated. It stops short of describing what an 'all' run returns or how results differ across multiple portfolios.

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?

One dense, front-loaded paragraph that leads with the default scoping behavior and the exclusion rules before listing outputs and usage triggers. The enumerated output list is long but every element is a distinct capability, so little could be cut without loss.

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

Completeness3/5

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

The presence of an output schema means the return shape needn't be spelled out, and the definition covers defaults, auth, and triggering intent. What remains unaddressed is how results differ when 'all' is used and whether the audit is deterministic across runs, which matters for a tool whose name overlaps with several siblings.

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?

With a single parameter at 100% schema description coverage, the baseline is 3, since the schema already explains that the parameter takes a name or 'all' and defaults to the primary. The description's 'pass portfolio only when the user asks for the others' essentially restates the schema's 'only widen when the user explicitly asks,' adding emphasis but little new semantics.

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?

States a specific verb (audit) and resource (signed-in user's primary active portfolio) and enumerates exactly what the snapshot contains: HHI concentration, largest position, top-3 weight, sector exposure, same-ticker overlap, sub-40 conviction holdings, and top-risk observations. It does not, however, distinguish itself from look-alike siblings such as get_portfolio_audit or run_portfolio_audit, which an agent could easily confuse with it.

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 concrete trigger phrases ('audit my portfolio', 'am I diversified', 'sector exposure') and an explicit default rule: portfolio is passed only 'when the user asks for the others,' and widened 'only when the user explicitly asks.' It also states the prerequisite that the user must be connected, though it never names a sibling tool as an alternative for the non-audit cases.

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