Skip to main content
Glama
eqlx-portfolio

eqlx-portfolio

Official
by eqlx-ai

what_if_new_loans

Read-only

Simulate adding new loans to a credit portfolio to compare expected loss, value-at-risk, expected shortfall, and economic capital before and after, including capital per unit of new exposure.

Instructions

What adding loans to new borrowers does: expected loss, value-at-risk, expected shortfall and economic capital before and after, the capital taken per unit of new exposure, and the change in concentration. Each new loan is {"loan_id", "exposure", "pd", "lgd"} with optional "borrower_id", "sector", "lgd_sd". Nothing is saved; the loan file is not changed.

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>",
      "new_loans": "<new_loans>"
    },
    "name": "what_if_new_loans"
  }
}

Input Schema

NameRequiredDescriptionDefault
loansYes
settingsYes
new_loansYes
overridesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/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 the description's added value is the explicit persistence guarantee: 'Nothing is saved; the loan file is not changed,' which tells the agent its inputs survive the call intact. It also enumerates the computed outputs (before/after metrics, capital per unit exposure, concentration delta), giving behavioral context the annotations cannot convey. It stops short of stating whether results are cached or whether overrides alter any on-disk state beyond the loan file.

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 output metrics are front-loaded in the first sentence and the non-persistence caveat closes the definition, so the most decision-relevant information arrives first. The first sentence is dense and somewhat list-like, and the inline JSON fragment for the loan record is compact rather than over-explained. Minor tightening is possible but nothing is wasted.

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?

An output schema exists, so the description need not re-explain return values, and the safety profile is covered by annotations. The remaining gap is input plumbing: with 3 required parameters of which only new_loans is described, an agent still lacks enough to form loans and settings confidently. Adequate for the risk-metrics story, incomplete for invocation.

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 0%, so the description must carry the load and it does so thoroughly for one parameter: new_loans is spelled out field-by-field as {loan_id, exposure, pd, lgd} with optional borrower_id, sector, lgd_sd, which is genuinely useful. However, three of four parameters — loans, settings, and overrides — get no explanation at all; the agent must guess whether loans and settings are file paths, handles, or serialized blobs, and what overrides can contain. Partial compensation for a 0% coverage schema lands at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-plus-resource framing: a what-if run that reports expected loss, VaR, expected shortfall, economic capital before and after, capital per unit of new exposure, and concentration change. That output list makes it unmistakably the portfolio-level scenario tool rather than the single-loan sibling price_new_loan, and an agent can tell what it produces without opening the schema.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'what adding loans to new borrowers does' — the agent can infer this is for scenario analysis on proposed new exposure, but there is no explicit when-to-use, when-not, or named alternative. The non-persistence note ('Nothing is saved') does help an agent decide it is safe for exploratory runs, which is real situational guidance, but it is behavioral rather than a routing rule.

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