Skip to main content
Glama
pranav797

Credit Risk MCP Server

by pranav797

score_borrower

Estimate a loan applicant's probability of default from annual income and loan amount, returning a risk tier and decision flag. Optional fields default to population medians.

Instructions

Estimate a loan applicant's probability of default.

Use this to get a single risk number for one borrower. Describe the applicant in plain terms — only annual income and loan amount are required; every other field falls back to the population median when omitted.

Returns a dict with:

  • default_probability: estimated probability of default (0-1)

  • risk_tier: "low" / "moderate" / "elevated" / "high"

  • flag_default: True if the probability is at or above the 0.15 decision threshold (this model is tuned for recall, not a 50% cutoff)

  • threshold_used: the decision threshold (0.15)

  • fields_defaulted: which optional fields fell back to medians

Educational model trained on a Kaggle dataset — not real lending advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present the description carries the full burden and does so well: it discloses the median-fallback behavior for omitted fields, the non-standard 0.15 decision threshold, the recall-tuned flagging semantics, and the educational/non-advisory limitation. These are exactly the traits an agent needs before trusting the output.

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?

Front-loaded purpose followed by scoping, a field-defaulting note, and a compact bulleted return contract — every section is useful. The return-value bullets are somewhat longer than necessary given a dedicated output schema exists, keeping it just under a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter scoring tool with an output schema, the description covers purpose, scoping, input semantics, threshold behavior, and limitations, leaving no material gap for correct invocation or interpretation.

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

Parameters4/5

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

Schema description coverage is reported at 0% (the top-level 'profile' parameter has no description), so the description has to compensate. It does: it states that only annual income and loan amount are required and that every other field falls back to the population median, which is the key semantic an agent needs when populating a sparse profile.

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?

States a specific verb+resource (estimate probability of default) and scopes it to a single applicant, which cleanly separates it from compare_borrowers. An agent can identify the tool's job 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 Guidelines4/5

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

'Use this to get a single risk number for one borrower' gives clear context for selection and implicitly routes multi-borrower cases elsewhere. It does not explicitly name or exclude sibling alternatives such as compare_borrowers or explain_prediction, so it stops short of a 5.

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