application_decisioning_tool
ChatGPTMCP Tool Specification: application_decisioning_tool Tool Purpose ------------ The
application_decisioning_tool is designed to: - Create a new credit application for a specific DUNS number. - If customer ask to appove some limits, as for trigger application process to approve limit - Pull the latest, real-time business data for that DUNS for credit decisioning. - Run the configured rules and/or credit limit models created by the user in the portal. - Determine whether the requested credit amount can be approved, declined, or requires review. - Return a fully formatted decision summary that can be directly shared with clients. Trigger Condition ----------------- This tool should be called whenever a user asks something like: - “Create an application for DUNS XXXXXXXX for amount $Y.” - “Can I approve $25,000 for this DUNS?” - “Check if this DUNS qualifies for the requested amount.” - “Can I approve a $50K credit limit for Company X?” - “I am owed $100K by Company Y. Can I increase the credit limit to $200K?” Important: 1. DUNS number is mandatory. If the user does not provide it, the tool must ask for it. if user provide company name then call query_portfolio tool search by name and ask user to select and obtain dunsnumber from selection 2. If this tool fail or throw exception failover to portfolio tool search duns data and take decision accordingly Expected Tool Input (JSON) -------------------------- { "duns": "string (required)", "requested_amount": "number (optional)", "currency": "string (optional, default = USD)", "email": : "string (optional, default = "test@test.com")" } Behavior & Validation --------------------- - Validate that DUNS is provided; otherwise, ask for it. - Handle missing fields gracefully: If requested_amount is missing, proceed with an application creation and decision only if rules allow; otherwise ask for the amount. If currency is missing, use policy currency when known; otherwise default to USD. - Always include the rule set name that produced the outcome (approved/declined/review). - Include a narrative explaining the “why” behind the decision (e.g., scores, risk band, rule conditions). - Ensure the response is returned in the exact formatted structure below, suitable for sharing with clients. Output Format (Human-Readable), skip the section if you not found any related data in response ------------------------------------- The tool must return the following structure (fill values from the decision engine response): Appllication Details: use entityInfoLW and show show formatted details do not show and Id fields like companyId, entityId or companyId, created_by, show entityNo, entityNo, Busineess Name , City , Address or other info Status: decisionReviewHistoryMap.decisionReasonsForm.applicationCurrentStatus Decision Summary: An automated decision resulted in a {Decision Status} outcome on {Decision Date}. {Data Source} was your source of business information to make this decision. Currency View Policy Currency ({CURRENCY_CODE}) Credit Terms Recommended (if applicable) Credit Limit: {CREDIT_LIMIT} ({CURRENCY_CODE}) Payment Terms: {TEXT or "Not Set"} Early Payment Discount: {TEXT or "Not Set"} Analyst Instructions: {Narrative explaining the decision, risk score context, and how the limit/terms were derived.} The recommended credit terms were based on the following: (Credit Limit Rule conditions and values are displayed in {CURRENCY_CODE}) Condition Value Application Decision Rule: {Rule Name} The following information was used to calculate the CLM: Expression: {CLM Expression/Formula block as text} Field Value Default Score {Default Score} D&B Maximum Credit Recommendation {Max Credit Recommendation} ({CURRENCY_CODE}) Use: decisionReviewHistoryMap.decisionReasonsForm.automatedDecisionReasons.andCriteriaList has rule condition to describe this in table format mention as below The "{Triggered Rule Name}" rule triggered this review because of the following conditions: (Rule conditions and values are displayed in {CURRENCY_CODE}) Condition: {Condition 1} Value: {Value 1} Condition: {Condition 2} Value: {Value 2} {...add as many as returned...} And the following conditions were not met: Condition: {Unmet Condition 1} Value: {Unmet Value 1} Condition: {Unmet Condition 2} Value: {Unmet Value 2} {...optional if any...} Additional Data Used (optional): - {Any other scores, risk flags, alerts, trend indicators} Example (Filled with Sample Values) ----------------------------------- Status: Approved Decision Summary: An automated decision resulted in an Approved outcome on 13/02/2026. D&B was your source of business information to make this decision. Currency View Policy Currency (GBP) Credit Terms Recommended Credit Limit: 49,602.11 (GBP) Payment Terms: Not Set Early Payment Discount: Not Set Analyst Instructions: This application has been approved and scored above 4.1 on a scale of 1 to 10 (10 = lowest risk). Its credit limit is assigned based on this score and the configured model. The requested amount falls within the recommended limit for this risk band. The recommended credit terms were based on the following: (Credit Limit Rule conditions and values are displayed in GBP) Condition Value Application Decision Rule: Approved Rule The following information was used to calculate the CLM: Expression: CASE WHEN (Default Score) BETWEEN 0.0 AND 2.0 THEN 0.0(D&B Maximum Credit Recommendation) WHEN (Default Score) BETWEEN 2.1 AND 4.0 THEN 0.3(D&B Maximum Credit Recommendation) WHEN (Default Score) BETWEEN 4.1 AND 6.0 THEN 0.8(D&B Maximum Credit Recommendation) WHEN (Default Score) BETWEEN 6.1 AND 8.0 THEN 1.0(D&B Maximum Credit Recommendation) WHEN (Default Score) BETWEEN 8.1 AND 10.0 THEN 1.25*(D&B Maximum Credit Recommendation) ELSE 0 END Field Value Default Score 7.5 D&B Maximum Credit Recommendation 49,602.11 (GBP) The "Default Approval Rule" rule triggered this review because of the following conditions: (Rule conditions and values are displayed in GBP) Condition: Default Score Is Greater Than 4.1 Value: 7.5 And the following conditions were not met: Condition: Bankruptcy & Insolvency - Y/N Open Is True Value: — Condition: Country or Region - D&B Is Not Equal To US|CA Value: US Condition: Out of Business Indicator Is True Value: False Additional Questions the Tool May Ask ------------------------------------- 1) What is the requested credit amount? (if not provided), Just mention if not provided then I will proceed with default 0 2) What currency should be used? (if the policy currency is unknown and no currency was specified), Just mention if not provided then I will proceed with default workspace currency 3) Do you want me to run the standard rules or a specific rule set? Notes for Implementers ---------------------- - Ensure deterministic formatting: field headers and section labels must match exactly for client sharing. - If converting currencies, show the policy currency values and, optionally, include a footnote with the original currency and rate/timestamp if your system supports it. - Include timestamps in ISO 8601 internally; render user-facing dates in DD/MM/YYYY unless a different locale is specified. - Log the rule set version and data source version used for auditability (not necessarily shown to the client unless requested).