Skip to main content
Glama

value_at_risk

Calculate portfolio Value-at-Risk with a parametric method using configurable confidence level and holding period to estimate potential losses over 1 or N days.

Instructions

Calculate portfolio Value-at-Risk (VaR) using parametric method. Returns 1-day and N-day VaR at given confidence.

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

Input Schema

NameRequiredDescriptionDefault
accountNoAccount ID
lookbackDaysNoHistorical lookback for vol estimation (default: 252)
confidenceLevelNoConfidence level (e.g., 0.95 for 95%)
holdingPeriodDaysNoHolding period in days (default: 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses the method (parametric) and the return shape (1-day and N-day VaR at a given confidence), but it omits key traits such as data requirements, parametric assumptions, whether an account is required, and whether the operation is read-only or mutating.

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?

Two sentences, front-loaded with the core action and followed by the return description. Every sentence earns its place, with no redundant or filler wording.

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

Completeness3/5

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

The description covers the core calculation and return shape, but for a risk-calculation tool with no annotations or output schema it should say more about prerequisites, assumptions, and treatment of optional inputs like account. It is minimally adequate rather than complete.

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 100%, so the schema already explains all four parameters, including defaults for lookbackDays and holdingPeriodDays. The description adds only loose ties ('N-day' to holdingPeriodDays, 'given confidence' to confidenceLevel), which is baseline value when the schema does the heavy lifting.

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 portfolio Value-at-Risk') and specifies the parametric method, which distinguishes it from generic account or exposure tools. It does not explicitly differentiate from risk-adjacent siblings like beta_exposure or correlation_matrix, so it stops short of 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 Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative methods (e.g., historical simulation) or sibling tools are named. The parametric scope is implied, but an agent gets no routing help for choosing this over other risk or exposure tools.

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

Deploy Server

Other Tools