Skip to main content
Glama
Satsuj1n

xp-mcp

by Satsuj1n

get_portfolio_summary

Get a full portfolio summary: market value, per-class breakdown, P&L, FGC coverage, maturity buckets, and reconciliation gap between declared and computed totals. No inputs.

Instructions

Aggregate stats + reconciliation gap for the portfolio. Returns total market value, per-class breakdown (% and BRL), top 5 positions, total/per-class P&L, FGC coverage, maturity buckets (short/medium/long), and the gap between the declared patrimônio total (from the last XPerformance PDF) vs computed total. Zero outbound HTTP. No inputs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4/5.0
Behavior3/5

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

The description explicitly states 'Zero outbound HTTP' and 'No inputs', which provides some behavioral clarity. However, with no annotations present, it does not explicitly confirm read-only behavior or lack of side effects, leaving some ambiguity.

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?

The description is dense but not verbose; it packs all relevant output details into a compact list without unnecessary filler. Each clause adds useful information.

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?

Given the lack of an output schema, the description does a good job listing the major return components and units (%, BRL). It does not specify exact data types or nested structures, but for a summary tool it provides sufficient context for an agent to understand what will be returned.

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?

The tool has zero parameters and the schema is empty; the description explicitly confirms 'No inputs,' which matches the schema. Since there are no parameters to document, the baseline score of 4 is appropriate.

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?

Clearly states the tool's purpose with a specific verb ('get') and resource ('portfolio summary'), and enumerates the exact outputs (total value, per-class breakdown, top 5 positions, P&L, FGC coverage, maturity buckets, reconciliation gap). It is easily distinguished from sibling tools like get_positions or get_cash_flows.

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

Usage Guidelines3/5

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

The description implies usage for obtaining an aggregate portfolio overview and reconciliation metrics, but it does not explicitly state when to prefer this tool over siblings or when not to use it. Usage guidance is only implicit through the listed return values.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.