Skip to main content
Glama

Manawa Terminal

Get portfolio rate sensitivity

get_portfolio_rate_sensitivity
Read-only

When to use: the caller wants duration, or how this portfolio changes when rates move.

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 the bond funds and rate-sensitive stocks on that portfolio.

What comes back: the route JSON, unchanged. duration is in years. dv01 is the book-currency change for a 1 basis point rise, and a negative number means the book loses value. value_change is the book-currency change for shock_bp, the parallel rise the route used. lines name each contribution. 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_rate_sensitivity"
  }
}

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

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered; the description adds real context on top: owner-scope authorization via the token, that the route reads bond funds and rate-sensitive stocks, and that an unowned portfolio returns the same not-found answer as a missing id. It also documents sign conventions (negative dv01 = loss) and the units of duration and dv01, which is behavior an agent cannot infer. It stops short of describing pagination or response size, but for a single-portfolio read that is minor.

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 / Args) make it easy to scan and the usage guidance is front-loaded. The closing "Args" block restates portfolio_id already covered under Inputs, which is redundant. The warning about user ids and symbol lists is useful but slightly confusing given no such parameters exist on the schema.

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?

For a two-parameter read with an output schema and full annotations, the description covers intent, authorization scope, and result semantics well enough to call it correctly. The only real hole is the unmentioned strategy_id, which the schema documents but the description ignores entirely.

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 description coverage is 50%: strategy_id is documented in the schema, while portfolio_id carries only a title. The description compensates for portfolio_id by stating it is the UUID from list_portfolios and that the token supplies owner scope. However, strategy_id is never mentioned in the description despite being a parameter on the schema, leaving one of two inputs entirely to the schema.

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 names a specific analytical result (duration, rate sensitivity, dv01, value_change) for a specific resource (a portfolio identified by portfolio_id). It goes beyond the title by enumerating the outputs, so an agent knows this is a rate-risk read rather than a generic portfolio lookup. It does not explicitly differentiate against near-neighbors such as get_portfolio_statistics, which keeps it from a 5.

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?

Opens with an explicit "When to use" clause tied to a concrete intent: the caller wants duration or rate-driven portfolio change. It also gives negative guidance ("Do not pass a user id or a symbol list") and states the token is the owner scope. No alternative tool is named as a substitute, so routing between siblings is left implicit.

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