{
  "schema_version": "1.0",
  "transport": "STREAMABLE_HTTP",
  "endpoint": "https://foundry-api-production-95ae.up.railway.app/mcp",
  "method": "POST",
  "protocol_version": "2025-06-18",
  "jsonrpc": "2.0",
  "stateless": true,
  "headers": {
    "Content-Type": "application/json",
    "Accept": "application/json, text/event-stream",
    "MCP-Protocol-Version": "2025-06-18"
  },
  "methods": [
    "initialize",
    "ping",
    "tools/list",
    "tools/call"
  ],
  "tools": [
    {
      "name": "foundry_products",
      "description": "Free / View JSON: request view=facts with a listed product_id, optional exact filters and limit (1..20). Use view=free_result for an entirely free offer, with optional filters.identifier and filters.choice. No wallet. For original discovery use {\"view\":\"tasks\",\"task\":\"exact_historical_evidence\",\"subject\":\"postgresql\"} to choose by historical task and held output, or {\"view\":\"summary\",\"limit\":64} for the short offer index. Read {\"product_id\":\"<exact listed ID>\"} alone for the public contract, copyable input and POST /v1/prepare/{product_id} for an unsigned quote. GET /v1/x402/binding-example for an offline example. Omitting view/product_id preserves the full catalogue, default3 and limit1..64/next_cursor. Zero task cards is not zero vulnerabilities; a summary or schema enum is not MATCH or current applicability.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 64
          },
          "cursor": {
            "type": "string",
            "maxLength": 256
          },
          "view": {
            "type": "string",
            "enum": [
              "summary",
              "tasks",
              "facts",
              "free_result"
            ]
          },
          "task": {
            "type": "string",
            "enum": [
              "correction_group_dossier",
              "dated_knowable_bundle",
              "declared_version_conditions",
              "exact_historical_evidence",
              "historical_comparison",
              "historical_support_end"
            ]
          },
          "subject": {
            "type": "string",
            "enum": [
              "apache_httpd",
              "cert_fr",
              "cisa_kev",
              "cpython",
              "go",
              "multi_source_cve",
              "postgresql"
            ]
          },
          "filters": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 256
            }
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 999999
          },
          "product_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "required": [],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "view"
              ],
              "properties": {
                "view": {
                  "enum": [
                    "facts",
                    "free_result"
                  ]
                }
              }
            },
            "then": {
              "required": [
                "product_id"
              ],
              "properties": {
                "limit": {
                  "maximum": 20
                }
              },
              "allOf": [
                {
                  "not": {
                    "required": [
                      "cursor"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "task"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "subject"
                    ]
                  }
                }
              ]
            },
            "else": {
              "allOf": [
                {
                  "not": {
                    "required": [
                      "product_id",
                      "view"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "product_id",
                      "limit"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "product_id",
                      "cursor"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "product_id",
                      "task"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "product_id",
                      "subject"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "filters"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "offset"
                    ]
                  }
                }
              ]
            }
          },
          {
            "if": {
              "required": [
                "view"
              ],
              "properties": {
                "view": {
                  "const": "free_result"
                }
              }
            },
            "then": {
              "allOf": [
                {
                  "not": {
                    "required": [
                      "limit"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "offset"
                    ]
                  }
                }
              ],
              "properties": {
                "filters": {
                  "properties": {
                    "identifier": {
                      "type": "string"
                    },
                    "choice": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "not": {
                "required": [
                  "product_id"
                ]
              }
            },
            "then": {
              "properties": {
                "limit": {
                  "default": 3
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "task"
              ]
            },
            "then": {
              "required": [
                "view"
              ],
              "properties": {
                "view": {
                  "const": "tasks"
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "subject"
              ]
            },
            "then": {
              "required": [
                "view"
              ],
              "properties": {
                "view": {
                  "const": "tasks"
                }
              }
            }
          }
        ]
      }
    },
    {
      "name": "foundry_selectors",
      "description": "Discover exact held historical request parameters for a currently configured listed product. Free, no payment or purchased evidence; use next_cursor and exact filters. Currentness remains UNKNOWN.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 3
          },
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "filters": {
            "type": "object",
            "properties": {
              "native_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "native_schema_version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "snapshot_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "record_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "module": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "before_observation_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "after_observation_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "cve_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "projection_version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "as_of": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "product_id"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "foundry_purchase",
      "description": "Buy a configured public product by product_id and its exact business body. Generic clients receive a payment challenge; paying requires an external authorized client.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "body": {
            "type": "object"
          }
        },
        "required": [
          "product_id",
          "body"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "foundry_purchase_read",
      "description": "Read/recover this exact original purchase through existing HTTP READ authentication. Never signs or settles. Supply cursor for an existing result page.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "authorization_id": {
            "type": "string",
            "pattern": "^x402_auth_[a-f0-9]{64}$"
          },
          "original_request": {
            "type": "object"
          },
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192
          }
        },
        "required": [
          "authorization_id",
          "original_request"
        ],
        "additionalProperties": false
      }
    }
  ],
  "free_discovery": {
    "guide_url": "https://foundry-api-production-95ae.up.railway.app/skill.md",
    "catalogue_tool": "foundry_products",
    "default_catalogue_limit": 3,
    "catalogue_example": {
      "view": "summary",
      "limit": 64
    },
    "contract_example": {
      "product_id": "<exact listed ID>"
    },
    "summary_profile": "foundry.mcp-product-summary.v1",
    "contract_profile": "foundry.mcp-product-contract.v1",
    "selectors_tool": "foundry_selectors",
    "payment": false,
    "scope": "HELD_HISTORICAL_ONLY",
    "currentness": "UNKNOWN"
  },
  "purchase": {
    "method": "tools/call",
    "tool": "foundry_purchase",
    "arguments": [
      "product_id",
      "body"
    ],
    "payment_payload_meta": "x402/payment",
    "response_http_status": 200,
    "business_http_status_meta": "foundry/http-status",
    "payment_challenge": "result.structuredContent and result.content text; inspect result.isError",
    "direct_x402": false,
    "direct_x402_guidance": "Use the product POST resource from /v1/products with its exact JSON body for a direct HTTP x402 wallet. The MCP endpoint requires JSON-RPC envelopes."
  },
  "read": {
    "tool": "foundry_purchase_read",
    "authentication": "EXISTING_HTTP_READ_AUTHENTICATION",
    "new_payment": false
  }
}