{
  "ok": true,
  "protocol": "Model Context Protocol",
  "transport": "streamable-http",
  "endpoint": "https://critical-minerals-due-diligence-a2a.vassiliy-lakhonin.workers.dev/mcp/agent",
  "legacy_payment_endpoint": "https://critical-minerals-due-diligence-a2a.vassiliy-lakhonin.workers.dev/mcp",
  "fleet_directory": "https://critical-minerals-due-diligence-a2a.vassiliy-lakhonin.workers.dev/.well-known/fleet.json",
  "invocation": {
    "method": "POST",
    "content_type": "application/json",
    "accept": [
      "application/json",
      "text/event-stream"
    ]
  },
  "supports_sse_get": false,
  "supported_protocol_versions": [
    "2026-07-28",
    "2025-11-25",
    "2025-06-18",
    "2025-03-26"
  ],
  "server_card": "https://critical-minerals-due-diligence-a2a.vassiliy-lakhonin.workers.dev/.well-known/mcp/server-card.json",
  "tools": [
    {
      "name": "critical_minerals_due_diligence",
      "description": "Review dated, scoped documentary evidence for critical minerals (lithium, rare earths, nickel, cobalt, copper, graphite, manganese, tungsten, gallium/germanium) before offtake or investment commitment. Returns source-quality issues, stage-specific evidence requests, owner tasks, and human-review routing. Required tool arguments: project_name, commodity, origin_jurisdiction, decision_question, decision_stage, supplied_sources. Grades supplied evidence; it does not independently verify source truth. Obtain the source records requested by inputSchema before asking for a decision-ready result. Do not fabricate missing evidence. For a Middle Corridor sanctions question without evidence, use corridor_sanctions_assistant at https://corridor-sanctions-assistant-a2a.vassiliy-lakhonin.workers.dev/mcp for orientation only. Illustrative example arguments (synthetic; replace with your own data): {\"project_name\":\"Example spodumene offtake\",\"commodity\":\"lithium\",\"origin_jurisdiction\":\"Kazakhstan\",\"processing_jurisdiction\":\"China\",\"target_market\":\"eu\",\"assessment_date\":\"2026-10-05\",\"decision_question\":\"Which evidence must the supplier provide before offtake review?\",\"decision_stage\":\"pre_offtake_agreement\",\"assumptions\":[\"Illustrative fictional documents; no verified supplier or legal clearance.\"],\"supplied_sources\":[{\"source_type\":\"mining_concession_or_license_extract\",\"document_id\":\"EX-L1\",\"title\":\"Illustrative concession extract\",\"date\":\"2026-09-01\",\"issuing_authority\":\"Example authority (fictional)\",\"excerpt\":\"ILLUSTRATIVE ONLY. Example Mine holds license EX-L1 for lithium extraction in Kazakhstan until 2027-12-31.\",\"valid_until\":\"2027-12-31\",\"scope\":{\"project_name\":\"Example spodumene offtake\",\"commodity\":\"lithium\",\"origin_jurisdiction\":\"Kazakhstan\"}},{\"source_type\":\"certified_ore_assay_report\",\"document_id\":\"EX-A1\",\"title\":\"Illustrative assay\",\"date\":\"2026-09-02\",\"issuing_authority\":\"Example laboratory (fictional)\",\"excerpt\":\"ILLUSTRATIVE ONLY. Batch EX-B1 reports 5.5% Li2O; sample identity and laboratory authenticity require review.\",\"scope\":{\"project_name\":\"Example spodumene offtake\",\"commodity\":\"lithium\",\"origin_jurisdiction\":\"Kazakhstan\"}}]}. This product offers two free trial attempts at /v1/trial; shared networks share the allowance and daily capacity is limited. Evaluation on paid endpoints requires a signed Base USDC payment for the exact request, or Pro access. Discovery is free. Keep the original request and X-Payment-Signature for result recovery within 24 hours. Current prices: https://critical-minerals-due-diligence-a2a.vassiliy-lakhonin.workers.dev/.well-known/x402. Do not pay automatically. Evidence triage only: no factual-truth verification, no legal, compliance, sanctions, or financial advice. Human review is required before any commercial action.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://github.com/vassiliylakhonin/agenda-intelligence-md/schemas/v1/critical-minerals-due-diligence-request.schema.json",
        "title": "CriticalMineralsDueDiligenceRequest",
        "description": "Caller-supplied dossier readiness review. Document metadata, scope and excerpts are not independently authenticated. No legal applicability or transaction authorization is established.",
        "x-schema-version": "1",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "project_name",
          "commodity",
          "origin_jurisdiction",
          "decision_question",
          "decision_stage",
          "supplied_sources"
        ],
        "properties": {
          "project_name": {
            "type": "string",
            "minLength": 1
          },
          "commodity": {
            "type": "string",
            "enum": [
              "lithium",
              "rare_earth_elements",
              "nickel",
              "cobalt",
              "copper",
              "graphite",
              "manganese",
              "tungsten",
              "gallium_germanium",
              "uranium",
              "titanium",
              "antimony",
              "other_critical_mineral"
            ]
          },
          "origin_jurisdiction": {
            "type": "string",
            "minLength": 1
          },
          "processing_jurisdiction": {
            "type": "string",
            "minLength": 1
          },
          "target_market": {
            "type": "string",
            "enum": [
              "eu",
              "us",
              "uk",
              "japan_korea",
              "global",
              "domestic"
            ],
            "default": "global"
          },
          "decision_question": {
            "type": "string",
            "minLength": 1
          },
          "decision_stage": {
            "type": "string",
            "enum": [
              "pre_exploration",
              "pre_offtake_agreement",
              "pre_processing_contract",
              "pre_export_shipment",
              "pre_investment_decision"
            ]
          },
          "counterparties": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "role",
                "jurisdiction"
              ],
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "mine_operator",
                    "concession_holder",
                    "refinery_processor",
                    "trading_intermediary",
                    "offtake_buyer",
                    "transport_logistics_carrier",
                    "government_entity"
                  ]
                },
                "jurisdiction": {
                  "type": "string",
                  "minLength": 1
                },
                "state_owned_or_affiliated": {
                  "type": "boolean"
                },
                "beneficial_owners": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "sanctions_screening_ref": {
                  "type": "string"
                }
              }
            },
            "default": []
          },
          "supplied_sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "source_type"
              ],
              "additionalProperties": false,
              "properties": {
                "source_type": {
                  "type": "string",
                  "minLength": 1
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "issuing_authority": {
                  "type": "string"
                },
                "verified_by_counsel": {
                  "type": "boolean"
                },
                "summary": {
                  "type": "string"
                },
                "document_id": {
                  "type": "string"
                },
                "excerpt": {
                  "type": "string"
                },
                "valid_until": {
                  "type": "string"
                },
                "scope": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "project_name": {
                      "type": "string"
                    },
                    "commodity": {
                      "type": "string"
                    },
                    "origin_jurisdiction": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "dated_sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "source_type"
              ],
              "additionalProperties": false,
              "properties": {
                "source_type": {
                  "type": "string",
                  "minLength": 1
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "issuing_authority": {
                  "type": "string"
                },
                "verified_by_counsel": {
                  "type": "boolean"
                },
                "summary": {
                  "type": "string"
                },
                "document_id": {
                  "type": "string"
                },
                "excerpt": {
                  "type": "string"
                },
                "valid_until": {
                  "type": "string"
                },
                "scope": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "project_name": {
                      "type": "string"
                    },
                    "commodity": {
                      "type": "string"
                    },
                    "origin_jurisdiction": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "blockers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "assessment_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Explicit review date (YYYY-MM-DD) for deterministic future-date and expiry checks. No implicit wall clock."
          }
        }
      },
      "_meta": {
        "com.agenda/readiness": {
          "schema_version": 1,
          "required_arguments": [
            "project_name",
            "commodity",
            "origin_jurisdiction",
            "decision_question",
            "decision_stage",
            "supplied_sources"
          ],
          "example_arguments": {
            "project_name": "Example spodumene offtake",
            "commodity": "lithium",
            "origin_jurisdiction": "Kazakhstan",
            "processing_jurisdiction": "China",
            "target_market": "eu",
            "assessment_date": "2026-10-05",
            "decision_question": "Which evidence must the supplier provide before offtake review?",
            "decision_stage": "pre_offtake_agreement",
            "assumptions": [
              "Illustrative fictional documents; no verified supplier or legal clearance."
            ],
            "supplied_sources": [
              {
                "source_type": "mining_concession_or_license_extract",
                "document_id": "EX-L1",
                "title": "Illustrative concession extract",
                "date": "2026-09-01",
                "issuing_authority": "Example authority (fictional)",
                "excerpt": "ILLUSTRATIVE ONLY. Example Mine holds license EX-L1 for lithium extraction in Kazakhstan until 2027-12-31.",
                "valid_until": "2027-12-31",
                "scope": {
                  "project_name": "Example spodumene offtake",
                  "commodity": "lithium",
                  "origin_jurisdiction": "Kazakhstan"
                }
              },
              {
                "source_type": "certified_ore_assay_report",
                "document_id": "EX-A1",
                "title": "Illustrative assay",
                "date": "2026-09-02",
                "issuing_authority": "Example laboratory (fictional)",
                "excerpt": "ILLUSTRATIVE ONLY. Batch EX-B1 reports 5.5% Li2O; sample identity and laboratory authenticity require review.",
                "scope": {
                  "project_name": "Example spodumene offtake",
                  "commodity": "lithium",
                  "origin_jurisdiction": "Kazakhstan"
                }
              }
            ]
          },
          "example_is_synthetic": true,
          "next_step": "Grades supplied evidence; it does not independently verify source truth. Obtain the source records requested by inputSchema before asking for a decision-ready result. Do not fabricate missing evidence. For a Middle Corridor sanctions question without evidence, use corridor_sanctions_assistant at https://corridor-sanctions-assistant-a2a.vassiliy-lakhonin.workers.dev/mcp for orientation only.",
          "expected_output_fields": [
            "triage_recommendation",
            "risk_signal",
            "decision_readiness_score",
            "decision_readiness_label",
            "operational_decision",
            "commodity",
            "origin_jurisdiction",
            "traceability_status",
            "supplied_sources",
            "minimum_sources_before_go",
            "evidence_gaps",
            "watch_next",
            "human_review_required",
            "not_advice_notice"
          ],
          "access": {
            "authentication": "none",
            "base_call_price": "paid",
            "billing_mode": "pay_per_call",
            "discovery_is_free": true,
            "quota_per_hour": null,
            "quota_enforcement": "best_effort",
            "pricing_url": "https://critical-minerals-due-diligence-a2a.vassiliy-lakhonin.workers.dev/.well-known/x402",
            "free_trial": {
              "endpoint": "/v1/trial",
              "agent_profile": "critical_minerals_due_diligence",
              "tool": "critical_minerals_due_diligence",
              "evaluation_kind": "evidence_review",
              "attempts_per_network": 2,
              "daily_service_limit": 1000,
              "payment_required": false,
              "scope": "Two attempts per network address per product for this trial campaign; shared networks share the allowance. Daily capacity is shared across all products.",
              "paid_endpoint": "/v1/critical-minerals/due-diligence",
              "paid_transport": "rest",
              "paid_price_usdc": 0.05
            },
            "on_quota_exceeded": "Wait for the next UTC hour or review optional paid access; do not pay automatically.",
            "payment_integration": "Legacy transaction-hash integration; standard x402 interoperability is not certified."
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://github.com/vassiliylakhonin/agenda-intelligence-md/schemas/v1/critical-minerals-due-diligence-response.schema.json",
        "title": "CriticalMineralsDueDiligenceResponse",
        "description": "Deterministic mineral dossier documentary coverage, source-quality issues, stage-specific owner actions and human-review routing. Caller-supplied records are not independently authenticated; no legal or business risk clearance is established.",
        "x-schema-version": "1",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "triage_recommendation",
          "risk_signal",
          "decision_readiness_score",
          "decision_readiness_label",
          "operational_decision",
          "commodity",
          "origin_jurisdiction",
          "traceability_status",
          "supplied_sources",
          "minimum_sources_before_go",
          "evidence_gaps",
          "watch_next",
          "human_review_required",
          "not_advice_notice"
        ],
        "properties": {
          "triage_recommendation": {
            "type": "string",
            "enum": [
              "not_decision_ready",
              "escalate_before_offtake",
              "escalate_before_shipment",
              "escalate_before_investment",
              "ready_for_human_review",
              "insufficient_information"
            ]
          },
          "risk_signal": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "medium_high",
              "high",
              "unknown"
            ]
          },
          "decision_readiness_score": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "decision_readiness_label": {
            "type": "string",
            "enum": [
              "insufficient_information",
              "not_decision_ready",
              "partial",
              "review_ready"
            ]
          },
          "operational_decision": {
            "type": "object",
            "required": [
              "decision",
              "reason_code",
              "blocking_gaps"
            ],
            "additionalProperties": false,
            "properties": {
              "decision": {
                "type": "string",
                "enum": [
                  "stop",
                  "request_evidence",
                  "require_approval",
                  "continue"
                ]
              },
              "reason_code": {
                "type": "string"
              },
              "blocking_gaps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "next_permitted_action": {
                "type": "string"
              }
            }
          },
          "commodity": {
            "type": "string"
          },
          "origin_jurisdiction": {
            "type": "string"
          },
          "processing_jurisdiction": {
            "type": "string"
          },
          "target_market": {
            "type": "string"
          },
          "traceability_status": {
            "type": "string",
            "enum": [
              "verified",
              "partial",
              "unverified",
              "obfuscated"
            ],
            "description": "Caller-supplied documentary coverage only. This service never independently verifies origin."
          },
          "export_control_exposure": {
            "type": "object",
            "required": [
              "quota_restricted",
              "jurisdiction_risk_flags"
            ],
            "additionalProperties": false,
            "properties": {
              "quota_restricted": {
                "type": "boolean",
                "description": "Legacy field: false means no restriction established by this linter, not legal clearance. Consult applicability questions."
              },
              "processing_monopoly_risk": {
                "type": "boolean"
              },
              "jurisdiction_risk_flags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "supplied_sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "minimum_sources_before_go": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "evidence_gaps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "top_risks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "category",
                "severity",
                "description"
              ],
              "additionalProperties": false,
              "properties": {
                "category": {
                  "type": "string"
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ]
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "exposure_layers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "layer",
                "level",
                "summary"
              ],
              "additionalProperties": false,
              "properties": {
                "layer": {
                  "type": "string"
                },
                "level": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                }
              }
            }
          },
          "watch_next": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "human_review_required": {
            "type": "boolean"
          },
          "not_advice_notice": {
            "type": "string"
          },
          "readiness_contract": {
            "$ref": "#/$defs/readiness_contract"
          },
          "run_provenance": {
            "type": "object",
            "required": [
              "contract_version",
              "input_digest",
              "schema_uri"
            ],
            "additionalProperties": false,
            "properties": {
              "contract_version": {
                "type": "string"
              },
              "input_digest": {
                "type": "string"
              },
              "schema_uri": {
                "type": "string"
              }
            }
          },
          "dossier_review": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "policy_version",
              "assessment_date",
              "eligible_source_types",
              "source_reviews",
              "owner_actions",
              "applicability_questions",
              "limitations"
            ],
            "properties": {
              "policy_version": {
                "type": "string"
              },
              "assessment_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "eligible_source_types": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_reviews": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source_ref",
                    "source_type",
                    "status",
                    "issues"
                  ],
                  "properties": {
                    "source_ref": {
                      "type": "string"
                    },
                    "source_type": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "eligible_for_review",
                        "needs_evidence"
                      ]
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "owner_actions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source_type",
                    "owner",
                    "priority",
                    "action"
                  ],
                  "properties": {
                    "source_type": {
                      "type": "string"
                    },
                    "owner": {
                      "type": "string"
                    },
                    "priority": {
                      "enum": [
                        "before_decision"
                      ]
                    },
                    "action": {
                      "type": "string"
                    }
                  }
                }
              },
              "applicability_questions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "limitations": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "$defs": {
          "readiness_named_value": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "field",
              "value"
            ],
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1
              },
              "value": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          "readiness_contract": {
            "type": "object",
            "additionalProperties": false,
            "description": "Additive normalized readiness view for cross-profile human-review routing.",
            "required": [
              "profile",
              "status",
              "score",
              "routing",
              "signal",
              "blocking_gaps",
              "non_blocking_gaps",
              "claim_audit",
              "owner_actions",
              "watch_next",
              "human_review_required",
              "boundary_notice"
            ],
            "properties": {
              "profile": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "minLength": 1
              },
              "score": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "maximum": 100
              },
              "routing": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/readiness_named_value"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "signal": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/readiness_named_value"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "blocking_gaps": {
                "type": "array",
                "items": {}
              },
              "non_blocking_gaps": {
                "type": "array",
                "items": {}
              },
              "claim_audit": {
                "type": "array",
                "items": {}
              },
              "owner_actions": {
                "type": "array",
                "items": {}
              },
              "watch_next": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "human_review_required": {
                "type": "boolean"
              },
              "boundary_notice": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        }
      }
    }
  ],
  "liveness": "ok"
}