Skip to main content
Glama

Manawa Terminal

Get portfolio hedge cost

get_portfolio_hedge_cost
Read-only

When to use: the caller wants the cost of protecting this portfolio with puts, or how expensive that hedge is relative to the book.

Inputs: portfolio_id from list_portfolios. The caller's token is the owner scope. Do not pass a user id or a symbol list. The route reads that portfolio's holdings.

What comes back: the route JSON, unchanged. It prices a one-month put 5 percent out of the money on each holding, plus an index put sized to the book. Costs are in the portfolio currency. A holding with no listed put is named in missing and is not a zero cost. A portfolio the token does not own is the same not-found answer as a missing id.

Args:
    portfolio_id: The portfolio UUID from list_portfolios

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "portfolio_id": "<portfolio_id>"
    },
    "name": "get_portfolio_hedge_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
strategy_idNoStrategy this call belongs to. UUID from list_strategies. The card this call writes keeps that id. Omit when the call is not part of a strategy.
portfolio_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond what readOnlyHint/openWorldHint/destructiveHint already declare, it discloses the pricing methodology (one-month put 5 percent out of the money per holding plus an index put sized to the book), the cost currency, and that a holding with no listed put appears in 'missing' rather than costing zero. It also states that an unowned portfolio returns the same not-found answer as a missing id, which is exactly the kind of authorization/error semantics an agent needs.

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?

Labeled sections ('When to use', 'Inputs', 'What comes back') front-load the useful parts and read cleanly. The trailing 'Args:' block restates the portfolio_id sourcing already given in 'Inputs', which is mild redundancy rather than noise.

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?

Although an output schema exists and return values need not be explained, the description adds interpretive meaning the schema cannot (what 'missing' means, currency of costs, hedge construction). Combined with input scoping and error semantics, an agent can call this correctly without further inference.

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?

With 50% schema coverage, the description carries real weight: it pins portfolio_id's provenance ('from list_portfolios') and the fact that the token supplies owner scope so no user id or symbol list should be passed. The optional strategy_id is not mentioned in the description at all, relying entirely on its schema text, which is the one gap.

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 opening clause names a specific verb and resource: the cost of protecting this portfolio with puts, plus the relative expense versus the book. It is concrete enough to distinguish from generic portfolio stats, but it never names the nearby sibling that answers a different options question (get_portfolio_covered_call_yield), so sibling differentiation is left implicit.

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?

The 'When to use' clause states the triggering intent clearly, and 'Do not pass a user id or a symbol list' pre-empts the obvious wrong invocation pattern. It stops short of naming an alternative tool for the adjacent cases, so there is no explicit when-not-to-use routing.

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