Skip to main content
Glama

optimize_portfolio

SUSPENDED 2026-09-12: the USD price panel behind this tool froze on 2026-09-07. The oracle answers 200 {"status": "suspended"} with the reason, resume condition and live alternatives, and does NOT charge. The tool is kept so it resumes automatically the day a live USD series exists. Prefer: loan_terms_preview (graded slabs, live), sports_board (live), or the free Japanese two-sided page /jp/card/{game}/{set}/{card}. Optimize a trading card portfolio using Markowitz mean-variance analysis with Merton jump-diffusion Monte Carlo simulations.

Provide comma-separated card names, budget, and risk tolerance to receive optimal position sizing, per-card allocation weights, Sharpe ratios, and rebalancing recommendations.

PAID: $0.50 USDC per call.

Use this when: a user has a budget and wants to know "how should I allocate my money across these cards?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
cardsYes
budgetNo
risk_toleranceNomoderate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does substantial work: it discloses a hard cost ($0.50 USDC per call), that the tool is currently suspended since 2026-09-12 with the reason, that calls do NOT charge while suspended, and that the oracle returns a 200 with a status payload. The main gap is that it doesn't address auth or rate limits, but the cost/suspension/behavioral disclosure is well beyond a typical definition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The suspended banner is front-loaded and informative, but the whole block is oversized for what it communicates: the suspension story, the resume logic, the alternatives list, then the actual purpose, cost, and usage. Several sentences could be tightened without losing signal, and the core purpose arrives deep into the text.

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 no output schema, the description usefully enumerates what the caller receives (optimal position sizing, per-card allocation weights, Sharpe ratios, rebalancing recommendations), and with no annotations it covers cost and live-status behavior. Missing only the 'days' parameter, which leaves a small schema gap rather than a comprehension gap.

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 0% and all four parameters are undocumented in the schema, so the description must compensate. It mentions 'comma-separated card names, budget, and risk tolerance' — adding a format detail (comma-separated) — but omits the 'days' parameter (default 90) entirely and gives no detail on valid risk_tolerance values or budget units.

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+resource ('Optimize a trading card portfolio') and names the underlying techniques (Markowitz mean-variance, Merton jump-diffusion Monte Carlo), which distinguishes it from forecasting/valuation siblings like card_forecast or simulate_price. It is clear what the tool does, though the suspended-status banner occupies the more prominent front position.

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?

Explicitly gives a use condition ('when a user has a budget and wants to know how should I allocate my money across these cards?') and names live alternatives (loan_terms_preview, sports_board, the free /jp/card page) for the suspended case. When-to-use and when-to-use-something-else are both present.

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.