Skip to main content
Glama
eqlx-portfolio

eqlx-portfolio

Official
by eqlx-ai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ROOTYesFolder to serve as the server root, passed as `--root /path/to/folder` when starting `eqlx-portfolio mcp`. The server reads only .csv and .json files inside this folder (no `..`, no symlink escapes) and writes nothing.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Measures the credit risk of a loan portfolio as a whole: how much it could lose in a bad year, how much capital that takes, and which borrowers and sectors drive it. Files live in one local folder; paths are relative to it. A run needs a loan file (CSV: loan_id, exposure, pd, lgd, optional borrower_id, sector, lgd_sd) and a settings file (JSON) whose correlation block is the main assumption. Start with list_files and describe_loans, then portfolio_risk; use risk_contributions to see who drives the risk, what_if_new_loans to test a new loan and price_new_loan for what that loan has to earn. loan_price, joint_default, joint_migration, exposure_value and large_portfolio_benchmark are calculators that need no file. Everything is deterministic: a simulation uses a fixed seed, so the same input gives the same numbers. The tool does not estimate pd, lgd or correlations. Quote the numbers the tools return, say which settings produced them, and for simulated value-at-risk mention the band.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_filesB

List the loan files (.csv) and settings files (.json) under a path in the allowed folder.

describe_loansC

What a loan file contains before any correlation assumption: loans, borrowers, sectors, exposure, expected loss, the largest borrowers and how concentrated the exposure is.

portfolio_riskA

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}.
    
risk_contributionsB

Borrowers ranked by their share of portfolio risk (their average loss in the worst outcomes), with exposure share next to risk share. A borrower whose risk share is far above its exposure share is where the concentration is. sector filters; limit is 1 to 1000.

what_if_new_loansA

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.

price_new_loanA

What one new loan has to earn in this book: cost components, hurdle rate (the break-even interest rate) and, if terms has a rate, RAROC and the yearly value added. The capital the loan ties up is measured three ways and priced for each: from this portfolio (it costs more where the book is already heavy), from the formula behind the Basel risk weights, and from a fixed risk weight if given.

    `new_loan` is {"loan_id", "exposure", "pd", "lgd"} with optional "sector". `terms` needs "years",
    "funding" (a yearly rate, or [[years, rate], ...]) and "target_return"; optional
    "operating_cost", "capital_return", "tax_rate", "payments_per_year" (1, 2, 4, 12), "repayment"
    ("bullet" or "equal_principal"), "rate", "pd_cumulative", and "risk_weight" with "capital_ratio".
    Rates are yearly decimals (0.25 is 25%). The tool does not recommend a price.
loan_priceA

Cost components, hurdle rate and RAROC of one fixed-rate loan when you already know the capital it ties up (capital, per unit lent: 0.08 is 8%). No file needed. Rates are yearly decimals. Hurdle rate = funding cost + expected loss margin + operating cost margin + capital margin.

joint_defaultA

Probability that two borrowers both default in the period, from their default probabilities and the correlation of their asset values; also what it would be if they were independent, and the correlation of the two default events (null when a default probability is 0 or 1).

joint_migrationB

Joint probabilities of the year-end ratings of two borrowers. Each list gives one borrower's probabilities of ending in each state, best rating first and default last. Returns each borrower's asset return thresholds (null where a state has no probability and the threshold is infinite) and the table of joint probabilities (rows: borrower A).

exposure_valueA

Mean and standard deviation of one exposure's value at the horizon. probs are the probabilities of each year-end state (best first, default last), values its value in each state, value_sds the optional uncertainty of the value inside each state (for example of recovery in default).

large_portfolio_benchmarkB

Loss rate of a perfectly fine-grained portfolio of identical loans in a bad year (the one-factor formula behind the Basel risk weights, without the maturity adjustment): default rate at the confidence level, loss rate, expected loss rate and the difference (unexpected loss).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 11 tools

Disambiguation4/5

Most tools target clearly distinct analyses: file listing, portfolio loss distribution, risk ranking, what-if, joint default/migration, and benchmark. The only real overlap is price_new_loan vs loan_price, both pricing a single loan, but the descriptions clearly separate them (portfolio-derived capital vs user-supplied capital). An agent can pick correctly with modest care.

Naming Consistency3/5

All names are snake_case, which is good, but the convention is mixed: some are verb_noun (list_files, describe_loans, price_new_loan), others are noun phrases (portfolio_risk, risk_contributions, loan_price, exposure_value, joint_default), and one is a phrase (what_if_new_loans). Readable but not a predictable pattern.

Tool Count5/5

11 tools is squarely in the well-scoped range for a credit portfolio analytics server. Each tool maps to a distinct analytical question (describe, risk, contributions, what-if, pricing, benchmark, joint probabilities) and none feels redundant.

Completeness4/5

The surface covers the analytics lifecycle well: inspect files, describe loans, run portfolio risk, rank contributors, what-if new loans, price loans, and benchmark. Minor gaps exist, such as no tool to read or inspect a settings file's contents and no way to create/edit loan files, but these are workable around.