Production-style Java API gateway with Spring AI MCP tool exposure for financial risk decisions.
Server exposes 8 financial risk-scoring tools with complete input schemas and reasonable descriptions. Naming follows verb_noun convention (risk_score_transaction, risk_lookup_decision, etc.). All tools have descriptions (avg ~120 chars, within 10-1024 baseline). Input parameters are typed and described. However, output schemas are not documented in the source, LLMs cannot see what fields to expect from responses. Tool descriptions lack actionable context (when to use, what happens, prerequisites). No error handling guidance visible. Duplicate tool pairs (risk_score_transaction vs risk.score.transaction) suggest incomplete refactoring. Security-sensitive operations (WRITE risk decisions) lack confirmation/dry-run patterns.
Returns a simple merchant-category risk profile used by the scoring system.
Return a simple merchant-category risk profile used by the scoring system.
Explains policy thresholds, high-risk categories, and the active rules model version.
Retrieves a previously persisted risk decision by decision id.
Scores a transaction, persists the decision, and returns explainable risk signals.
Explain active risk thresholds, high-risk merchant categories, high-risk countries, and model version.
Output schemas not documented. LLMs cannot see what fields risk_score_transaction returns (e.g., riskScore, signals, decisionId, timestamp). Without documented return types, agents cannot plan downstream calls or extract required data.
Duplicate tool pairs with different naming conventions (risk_score_transaction vs risk.score.transaction). Naming inconsistency forces LLMs to reason about which variant to use, wasting tokens and risking wrong tool selection.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2026-07-28+ | v2 |
Look up a previously persisted risk decision by decision id.
Score a financial transaction, persist the decision, and return explainable risk signals. Deterministic and audit-friendly; no LLM provider API key is required.
Descriptions lack actionable context. 'Score a financial transaction' does not explain WHEN to call this vs other tools, WHAT happens (persists decision), or WHAT to do with the result. Descriptions should be 50-200 chars and answer: what, when, why.
No error handling guidance. If risk_score_transaction fails (invalid customerId, duplicate transactionId, service timeout), LLM has no recovery path. Errors should categorize as retryable/user-fixable/fatal and suggest next steps.
Destructive operation (risk_score_transaction persists decisions) lacks confirmation/dry-run pattern. Agents make mistakes, no way to preview risk decision before committing. Should support dry_run parameter or separate confirm_risk_decision tool.