Skip to main content
Glama
eqlx-portfolio

eqlx-portfolio

Official
by eqlx-ai

portfolio_risk

Read-only

Compute a credit portfolio's loss distribution, including expected loss, value-at-risk, expected shortfall, economic capital, concentration, and top risk contributors from loan and settings files.

Instructions

Loss distribution of the whole portfolio: expected loss, standard deviation, and at each confidence level value-at-risk, expected shortfall and economic capital; plus concentration by sector, the ten largest risk contributors, the checks that were run and the steps taken.

    `settings` is a JSON file: method ("simulation" or "creditriskplus"), confidence levels, correlation
    (model "single" with rho, "basel_corporate", or "sector" with within/between), scenarios and seed.
    `overrides` replaces single settings by dotted key, e.g. {"correlation.rho": 0.25, "scenarios": 400000}.
    

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": {
      "loans": "<loans>",
      "settings": "<settings>"
    },
    "name": "portfolio_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
loansYes
settingsYes
overridesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/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 value beyond that: it discloses that the tool runs validation checks and reports 'the steps taken', and that run shape is controlled by scenarios/seed and correlation model. It does not warn about cost or runtime, which matters for a simulation with hundreds of thousands of scenarios.

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?

Content is front-loaded with what the tool returns, followed by the two file-shaped parameters and the overrides convention. The long first sentence is dense but each clause names a distinct output; the second paragraph's example of dotted keys earns its space. Minor redundancy given an output schema already exists.

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?

With three parameters, 0% schema coverage and a required `loans` input, the definition leaves a real gap: it never says what `loans` should contain or how it is supplied, despite a sibling tool being about listing files. The settings and overrides semantics are well covered, and the output schema means return values need not be re-explained.

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?

Schema description coverage is 0%, so the description must carry the load and largely does: it explains that `settings` is a JSON file containing method, confidence levels, correlation model variants (single/rho, basel_corporate, sector within/between), scenarios and seed, and that `overrides` replaces individual settings via dotted keys with a concrete example. The `loans` parameter, a required string, is left entirely unexplained (file path? JSON blob?).

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 the resource precisely and enumerates the outputs: expected loss, standard deviation, VaR/expected shortfall/economic capital per confidence level, sector concentration, top-ten risk contributors, and diagnostics. That is far more specific than a tautology. It stops short of naming or contrasting a sibling (e.g. risk_contributions or large_portfolio_benchmark), so an agent must infer the boundary itself.

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, no named alternative, and no mention of prerequisites such as needing a prepared loan file. The only selection-relevant information is implicit in the settings method options ('simulation' vs 'creditriskplus'), which hints at modeling choice but not tool choice.

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