Skip to main content
Glama
eqlx-portfolio

eqlx-portfolio

Official
by eqlx-ai

loan_price

Read-only

Compute cost components, hurdle rate and RAROC for a single fixed-rate loan from notional, PD, LGD, capital and funding inputs, showing whether the loan clears its target return.

Instructions

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.

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": {
      "notional": "<notional>",
      "years": "<years>",
      "pd": "<pd>",
      "lgd": "<lgd>",
      "capital": "<capital>",
      "target_return": "<target_return>",
      "funding": "<funding>"
    },
    "name": "loan_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdYes
lgdYes
rateNo
yearsYes
capitalYes
fundingYes
notionalYes
tax_rateNo
repaymentNobullet
target_returnYes
capital_returnNo
operating_costNo
payments_per_yearNo

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?

Annotations already declare a safe read-only, closed-world operation, and the description adds real domain context on top: capital is per unit lent (0.08 = 8%), rates are yearly decimals, and the hurdle rate is decomposed into funding + expected loss + operating cost + capital margins. It still says nothing about edge cases or how the output decomposes, but the formula disclosure is genuinely useful.

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?

Purpose is front-loaded in the first clause, with unit conventions and the formula following in support. Every sentence carries information; formatting is dense but not padded.

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 return values need not be spelled out, and annotations cover the safety profile. However, for a 13-parameter pricing model at 0% schema coverage, the description leaves too many inputs (repayment mode, payment frequency, tax, the two return parameters) ambiguous for an agent to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 13 parameters, so the description carries the full semantic burden, yet it only really explains `capital` (per unit lent) and the yearly-decimal convention for rates. The hurdle-rate formula hints at funding, operating_cost and capital margin, but pd, lgd, years, notional, tax_rate, repayment ('bullet'), payments_per_year, and the target_return vs capital_return distinction are left unexplained.

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 a specific computation and resource: the cost components, hurdle rate and RAROC of one fixed-rate loan. It implicitly separates itself from price_new_loan via the clause 'when you already know the capital it ties up', so an agent can distinguish the two without opening schemas, though the sibling is never named.

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

Usage Guidelines4/5

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

It gives a clear selecting condition ('when you already know the capital it ties up') and an exclusion ('No file needed'), which steers the agent away from file-based tools. It stops short of naming the alternative (price_new_loan) or stating when to prefer that tool instead.

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