{
  "name": "DataX-Spain-EU-Fortress-MCP",
  "version": "2.2.0",
  "tools": [
    {
      "name": "get_pricing",
      "description": "[GET /.well-known/ai-crawl-pricing.json] Fetch 3-tier USDC & MiCA EURC pricing (0.10 Radar / 0.30 KYB / 0.50 Full Unlock), contracts, recipients, and BI taxonomy.",
      "endpoint": "/.well-known/ai-crawl-pricing.json",
      "method": "GET",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      }
    },
    {
      "name": "get_catalog",
      "description": "[GET /agent-catalog.json] Check live BOE+BORME+BDNS+PLACSP+EU+CNMV freshness (data_version), date range, and counts by seccion & notice_type.",
      "endpoint": "/agent-catalog.json",
      "method": "GET",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      }
    },
    {
      "name": "quote_query",
      "description": "[GET /api/v1/quote/boe-spain | Headers: X-Payment-Proof: Valid UNSPENT payment token] Token-gated pre-check returning executable, has_matches (true/false), data_version, and price_micros without burning token.",
      "endpoint": "/api/v1/quote/boe-spain",
      "method": "GET",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "search_tenders",
              "find_distressed_auctions",
              "find_funded_companies",
              "check_company_risk",
              "get_tender_detail"
            ]
          },
          "query": {
            "type": "string"
          },
          "seccion": {
            "type": "string",
            "enum": [
              "ALL",
              "1",
              "2B",
              "3",
              "4",
              "5A",
              "5B",
              "5C",
              "BA",
              "BB",
              "SA",
              "SC",
              "PC",
              "PA",
              "EU",
              "TE",
              "LC",
              "SF",
              "MV"
            ]
          },
          "notice_type": {
            "type": "string",
            "enum": [
              "ALL",
              "LICITACION",
              "FORMALIZACION",
              "MODIFICACION",
              "OPOSICION",
              "SUBASTA",
              "SUBVENCION",
              "CONCESION",
              "SANCION",
              "ENERGIA_EXPROPIACION",
              "NORMATIVA",
              "CONSTITUCION",
              "CONCURSO_DISOLUCION",
              "MERCANTIL",
              "ANUNCIO"
            ]
          },
          "cif": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "item_ref": {
            "type": "string"
          }
        },
        "required": [
          "operation"
        ]
      },
      "headers": {
        "X-Payment-Proof": "Valid UNSPENT payment token"
      }
    },
    {
      "name": "request_claim_challenge",
      "description": "[POST /api/v1/challenge] Stateless HMAC challenge for USDC/EURC tx redemption (or scope_id='e'*16, tx_hash='' for paid X-Payer-Auth refresh).",
      "endpoint": "/api/v1/challenge",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "scope_id": {
            "type": "string"
          },
          "network": {
            "type": "string",
            "enum": [
              "base",
              "polygon",
              "solana"
            ]
          },
          "asset": {
            "type": "string",
            "enum": [
              "USDC",
              "EURC"
            ]
          },
          "payer_id": {
            "type": "string"
          },
          "tx_hash": {
            "type": "string"
          },
          "token_micros": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "token_count": {
            "type": "integer"
          }
        },
        "required": [
          "scope_id",
          "network",
          "payer_id"
        ]
      }
    },
    {
      "name": "issue_token",
      "description": "[POST /api/v1/issue-token] Redeem signed challenge for UTXO X-Payment-Proof tokens and X-Payer-Auth (USDC or MiCA EURC).",
      "endpoint": "/api/v1/issue-token",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "challenge_nonce": {
            "type": "string"
          },
          "scope_id": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "asset": {
            "type": "string",
            "enum": [
              "USDC",
              "EURC"
            ]
          },
          "payer_id": {
            "type": "string"
          },
          "tx_hash": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "token_micros": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "token_count": {
            "type": "integer"
          }
        },
        "required": [
          "challenge_nonce",
          "scope_id",
          "network",
          "payer_id",
          "signature"
        ]
      }
    },
    {
      "name": "split_token",
      "description": "[POST /api/v1/split-token | Headers: X-Payment-Proof: Unspent 6-part HMAC payment token] UTXO split of an unspent X-Payment-Proof token preserving parent ts & scope_id.",
      "endpoint": "/api/v1/split-token",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "token_micros": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "required": [
          "token_micros"
        ]
      },
      "headers": {
        "X-Payment-Proof": "Unspent 6-part HMAC payment token"
      }
    },
    {
      "name": "find_distressed_auctions",
      "description": "[POST /api/v1/execute/boe-spain | Headers: X-Payment-Proof: Valid token >= 100000 micros, Idempotency-Key: Optional ASCII key] Tier 1 Real-Estate Arbitrage (0.10 USDC/EURC -> item_ref): Ranks official Spain property auctions by debt-to-value discount (ltv_pct) and equity margin.",
      "endpoint": "/api/v1/execute/boe-spain",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "const": "find_distressed_auctions"
          },
          "params": {
            "type": "object",
            "properties": {
              "ambito": {
                "type": "string"
              },
              "min_value_eur": {
                "type": "number"
              },
              "max_ltv_pct": {
                "type": "number"
              },
              "concursal_only": {
                "type": "boolean"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 25
              }
            }
          }
        },
        "required": [
          "operation",
          "params"
        ]
      },
      "headers": {
        "X-Payment-Proof": "Valid token >= 100000 micros",
        "Idempotency-Key": "Optional ASCII key"
      }
    },
    {
      "name": "find_funded_companies",
      "description": "[POST /api/v1/execute/boe-spain | Headers: X-Payment-Proof: Valid token >= 100000 micros, Idempotency-Key: Optional ASCII key] Tier 1 B2B Cash-Flow Radar (0.10 USDC/EURC -> item_ref): Screens newly subsidized companies (BDNS SC), public contract winners (PA/5A/TE) & capital raises (BA) above min_importe_eur.",
      "endpoint": "/api/v1/execute/boe-spain",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "const": "find_funded_companies"
          },
          "params": {
            "type": "object",
            "properties": {
              "event_type": {
                "type": "string",
                "enum": [
                  "ALL",
                  "SUBVENCION_SC",
                  "ADJUDICACION",
                  "CONSTITUCION_CAPITAL"
                ]
              },
              "min_importe_eur": {
                "type": "number"
              },
              "ambito": {
                "type": "string"
              },
              "query": {
                "type": "string"
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 25
              }
            }
          }
        },
        "required": [
          "operation",
          "params"
        ]
      },
      "headers": {
        "X-Payment-Proof": "Valid token >= 100000 micros",
        "Idempotency-Key": "Optional ASCII key"
      }
    },
    {
      "name": "execute_boe_query",
      "description": "[POST /api/v1/execute/boe-spain | Headers: X-Payment-Proof: Valid token >= price_micros (100k Radar, 300k KYB, 500k Detail), Idempotency-Key: Optional ASCII key] Execute search_tenders (0.10), find_distressed_auctions (0.10), find_funded_companies (0.10), check_company_risk (0.30), OR get_tender_detail (0.50 -> unlock via item_ref).",
      "endpoint": "/api/v1/execute/boe-spain",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "search_tenders",
              "find_distressed_auctions",
              "find_funded_companies",
              "check_company_risk",
              "get_tender_detail"
            ]
          },
          "params": {
            "type": "object"
          }
        },
        "required": [
          "operation",
          "params"
        ]
      },
      "headers": {
        "X-Payment-Proof": "Valid token >= price_micros (100k Radar, 300k KYB, 500k Detail)",
        "Idempotency-Key": "Optional ASCII key"
      }
    },
    {
      "name": "reconcile_query",
      "description": "[GET /api/v1/execute/reconcile | Headers: X-Payer-Auth: payer_id.ts.sig] Recover already-paid exact response by sha256(f'{payer_id}:boe-spain:{Idempotency-Key_or_token_nonce}').",
      "endpoint": "/api/v1/execute/reconcile",
      "method": "GET",
      "inputSchema": {
        "type": "object",
        "properties": {
          "idempotency_key": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "idempotency_key"
        ]
      },
      "headers": {
        "X-Payer-Auth": "payer_id.ts.sig"
      }
    }
  ]
}