Shadow's persona-pack deliberation, loan council, calibration stats, risk tools, attestation verification, and banking profile validation exposed as MCP tools for Claude Desktop, Cursor, Zed, and other MCP-capable hosts.
Shadow MCP server has 20 tools with generally clear naming (verb_noun pattern: shadow_*, find_*, get_*, describe_*, verify_*) and detailed descriptions (avg 180+ chars). However, critical gaps exist: tools 11-20 (spatial-agent tools) lack visible input schemas in the provided source; parameter descriptions are inconsistent across tools; error handling guidance is absent; and output schemas are not formally documented. Tools 1-10 have richer descriptions but still lack explicit schema documentation. The server demonstrates domain expertise (loan council, risk metrics, fair-lending analysis) but falls short of production-grade tool definition quality.
Compare reviewer decisions in a Shadow spatial-agent session: returns reviewer_id, stance (decision), and override_rationale for each reviewer.
Describe risks in a Shadow spatial-agent session: returns claims with validation_status='source_bound', their severity, computed risk score, and source_ids, sorted by risk descending.
Describe a Shadow spatial-agent session: session_id, profile name, source count, claim count, and record integrity status.
Find an audit event by stage name in a Shadow spatial-agent session. Valid stages: capture, ocr, sources, claims, reviewers, human, signature, verify, dataset, features, candidates, evaluation, selected, issue, commands, diffs, tests, security, commit.
Search for claims in a Shadow spatial-agent session by query string. Returns matching claims with claim_id, text, validation_status, and source_ids.
Search for sources in a Shadow spatial-agent session by query string. Returns matching sources with source_id and preview text.
Tools 11-20 (spatial-agent tools) have NO visible input schemas in source code. Only parameter names and brief descriptions provided; no JSON Schema with types, constraints, or required fields.
Output schemas not formally documented for any tool. Descriptions mention return fields (e.g. 'Returns final_verdict, 5 voice rationales, risk_packet') but no structured JSON Schema for response objects. LLMs cannot reliably parse or chain results.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2025-06-18+ | v2 |
Get profile summary from a Shadow spatial-agent session: returns profile name, data keys, selected_model, and final_commit.
Get verification failure details from a Shadow spatial-agent session: returns {failed, failed_seq, reason}.
Resolve a source by source_id and return its full content, confidence, bounding box, and related claim IDs.
Check a Shadow evidence bundle against the Banking Evidence Profile v1 (spec/banking-evidence-profile-v1.json) and, optionally, produce an examiner-ready evidence packet. This is the 'is this credit decision auditable?' pass/fail gate no published standard owns: it confirms the bundle carries the examiner-required evidence for a US credit decision (integrity, decision outcome, model/tool manifest, policy version, timestamps, data-as-of, human review, principal reason codes, a GOVERNED reason-code dictionary version, source citations, retention status), each mapped to its Reg B / FCRA / SR 26-2 hook, with a swapped/ungoverned reason-code dictionary FAILING the check.
Get Brier calibration stats for a given persona (or all personas if omitted). Returns n, mean_brier (0 = perfect, 0.25 = unhelpful baseline, 1 = perfectly wrong), and the distribution of past outcomes (approved / blocked / escalated). Use this when a user asks how well-calibrated a persona has been historically — useful for SR 11-7 model risk monitoring.
Fair-Lending disparity metrics (Solas-aligned methodology): Adverse Impact Ratio (AIR, 4/5ths rule per EEOC UGSEP 1978 §1607.4(D)), Standardized Mean Difference (SMD, Cohen's d style), and Segmented AIR (AIR sliced by control variable). Returns the metric(s) requested. Use this when a Fair-Lending examiner asks for disparate-impact analysis on a cohort.
Run Loredana Levitchi's 5-voice loan-origination council on a structured loan dict. Pure compute, no LLM call, ~1-5ms latency. Returns final_verdict (block | escalate | approve), the 5 voice rationales, the risk_packet (VaR / ES / concentration / sector exposure), and the BR thresholds applied. Best when the user wants a deterministic risk verdict that's auditable under ECOA/Reg B specific-principal-reason requirements.
v1.5.45: Dual-envelope variant of shadow_loan_council. Returns human-readable markdown in content[] AND typed structured JSON in structuredContent. LLM callers reason from the markdown; downstream bank SIEM tooling parses the structured payload without re-parsing a stringified body. Same inputs as shadow_loan_council. Ports the ChromeDevTools/chrome-devtools-mcp response pattern (Apache-2.0, Google LLC).
Recall past Shadow deliberation entries for a given persona + scenario from cross-session memory. Returns up to max_results entries (default 5) with their voice paragraphs, outcomes, and Brier scores. Use this when a user wants to see what the council said previously for similar questions.
Run one of Loredana's typed institutional risk primitives directly: historical_var, expected_shortfall, concentration_limits, sector_exposure, correlation_matrix, beta_decomposition. Returns the metric. Use this when you need to compute a single risk number without running the full loan council.
List Shadow's full surface: 5 persona packs (each with 3 voice prompts), 4 scenario contexts, 4 device clients (Desktop / Even G2 / Brilliant Frame / XReal Air 2 Ultra), and 2 providers (Anthropic Claude + Zhipu GLM-5.2). Returns the catalog for discovery.
Look up the source attribution for any Shadow Mode A benchmark rule. Returns the governance layer (institutional risk framework / product-line policy / benchmark calibration parameter / regulatory) and the authoritative source document. Use this when a user wants to verify procurement-audit citation chain — e.g. "what justifies FICO >= 700" or "is VaR <= 0.12 from the BRD?" Returns the full traceability dict if no specific rule is requested, plus the 5 AA01-05 adverse-action codes with their source attribution.
Verify a Shadow AEX-style attestation on a persisted /api/deliberate or /api/loan-council response. Confirms (1) the request wasn't tampered, (2) the response wasn't tampered, (3) the exact model_id ran, (4) the deployment key material matches. Bank-auditor path — pass the persisted request + response body (attestation field stripped) + the attestation object + the verification key material (HMAC signing key OR Ed25519 public key). Returns {ok, reason, checks}. Ok=false means the record is tampered, silently model-swapped, or a different key was used. Ed25519 mode is the procurement-recommended mode: bank holds only the public half of the keypair, cannot forge, only verify.
Verify a Shadow evidence bundle using the REAL verifier (not an LLM). Returns {verified, failed_seq, reason}. Requires bundle and publicKeyPem in context.
No error handling guidance in any tool description. Tools do not document what errors can occur, whether they are retryable, or what the LLM should do next. E.g. shadow_loan_council does not explain what happens if loan dict is malformed or missing required fields.
shadow_risk_tools references 'lib/risk-tools/index.js RISK_TOOL_DEFINITIONS' for input schemas but does not inline them. LLMs cannot see the actual constraints for each tool variant (historical_var, expected_shortfall, etc.) without reading external files.
Spatial-agent tools (11-20) have minimal descriptions (30-65 chars). E.g. 'Describe a Shadow spatial-agent session: session_id, profile name, source count, claim count, and record integrity status.' lacks WHEN to call it or what it enables.