Skip to main content
Glama

Foresea Forecasting

foresea_optimize_portfolio

Read-onlyIdempotent

Calculate optimal mathematical Fractional Kelly capital allocations and position sizes across live Grade A/B prediction market opportunities.

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

Input Schema

NameRequiredDescriptionDefault
min_edgeNo
bankroll_usdNo
kelly_fractionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already disclose read-only, idempotent, open-world, and non-destructive behavior, so the description does not need to repeat safety traits. The description adds that the tool operates on live Grade A/B opportunities and computes fractional Kelly allocations, but it does not explain data freshness, calculation assumptions, or behavior when no qualifying opportunities exist. It adds some behavioral context but leaves meaningful gaps.

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?

The description is a single front-loaded sentence with no filler. It is dense but efficient, though the phrase 'optimal mathematical Fractional Kelly' is jargon-heavy and could be clearer without adding length.

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

Completeness2/5

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

The tool has an output schema and strong annotations, so return values and safety do not need explanation. However, with 0% schema description coverage and no parameter explanations, the description is not complete enough for an agent to invoke the optimizer confidently. It also leaves the Grade A/B qualification and live-data source undefined.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the burden of explaining the three parameters. It loosely implies kelly_fraction through 'Fractional Kelly' and bankroll through 'capital allocations', but never explains min_edge, parameter defaults, units, or how edge filtering interacts with the calculation. This is a significant gap for an optimization tool.

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?

The description states a specific verb and resource: calculate fractional Kelly allocations and position sizes. It also scopes the tool to live Grade A/B prediction market opportunities, which distinguishes portfolio-level allocation from sibling tools that analyze individual markets or place orders. However, 'Grade A/B' is undefined jargon, which slightly reduces clarity.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use guidance, prerequisites, or exclusions. It does not explain how this differs from alternatives such as foresea_edge_board or foresea_scan_markets, or whether it should be used before placing orders. Usage is only implied by 'live opportunities'.

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.