Skip to main content
Glama
eqlx-portfolio

eqlx-portfolio

Official
by eqlx-ai

price_new_loan

Read-only

Calculate a new loan's break-even interest rate, cost components, RAROC, and yearly value added using portfolio, Basel, or fixed capital measures.

Instructions

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.

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_loan": "<new_loan>",
      "terms": "<terms>"
    },
    "name": "price_new_loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
loansYes
termsYes
new_loanYes
settingsYes
overridesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

The description adds substantial behavioral context beyond the annotations: it explains that capital is measured three ways, that portfolio-heavy exposure costs more, and that RAROC/value added are returned only when a rate is supplied. This is useful methodological transparency for a read-only analytical tool, though it does not discuss computational cost or output structure.

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 description is dense but well organized, front-loading the purpose and then documenting inputs and rate conventions. Given the tool's complexity and the absence of schema descriptions, most details earn their place, though the prose listing of nested fields is somewhat lengthy.

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 pricing logic and nested inputs well, and an output schema exists so return values need not be explained. However, for a complex financial tool with required top-level loans and settings parameters and zero schema descriptions, the omission of what those strings should contain is a meaningful completeness gap.

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 parameter meaning. It thoroughly documents the nested new_loan and terms objects, including required fields, optional fields, enums such as payments_per_year and repayment, and the yearly-decimal rate convention. However, it does not explain the required top-level loans and settings strings or the overrides object, leaving invocation ambiguity.

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 purpose: it computes what one new loan must earn, including cost components, hurdle rate, and conditional RAROC/value added. It is clear enough to distinguish from a generic pricing tool, though it does not explicitly name or differentiate from siblings such as loan_price or what_if_new_loans.

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 implied by 'one new loan' and 'in this book,' suggesting single-loan pricing against an existing portfolio. The description also states a limitation that the tool does not recommend a price, but it does not explicitly say when to use it versus alternatives or what prerequisites are required.

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