eqlx-portfolio
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ROOT | Yes | Folder 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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. |
| 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. |
| 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 |
| loan_priceA | Cost components, hurdle rate and RAROC of one fixed-rate loan when you already know the capital
it ties up ( |
| 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. |
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
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.
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.
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.
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.