{
 "openapi": "3.1.0",
 "info": {
  "title": "FMF Tools Directory",
  "version": "0.1.0",
  "description": "Verified, tested MCP servers and pay-per-call agent APIs. Free to read.",
  "contact": {
   "name": "FMF Tools",
   "email": "fmf-tools@agentmail.to"
  }
 },
 "servers": [
  {
   "url": "https://tools.fmf-x402.workers.dev"
  }
 ],
 "paths": {
  "/api/search": {
   "get": {
    "operationId": "search",
    "summary": "Search listings that passed today's tests",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "category",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "type",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "mcp",
        "paid"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "maximum": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "results"
     }
    }
   }
  },
  "/api/best": {
   "get": {
    "operationId": "bestFor",
    "summary": "Best verified tool for a task",
    "parameters": [
     {
      "name": "task",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "any",
        "mcp",
        "paid"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "ranked picks with evidence"
     }
    }
   }
  },
  "/api/tool/{id}.json": {
   "get": {
    "operationId": "getTool",
    "summary": "One listing with all test evidence",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "listing"
     },
     "404": {
      "description": "unknown"
     }
    }
   }
  },
  "/api/categories.json": {
   "get": {
    "operationId": "categories",
    "summary": "Categories with best picks",
    "responses": {
     "200": {
      "description": "categories"
     }
    }
   }
  },
  "/api/category/{id}.json": {
   "get": {
    "operationId": "category",
    "summary": "Ranked best-of-breed for one category",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "ranking"
     }
    }
   }
  },
  "/api/best.json": {
   "get": {
    "operationId": "bestAll",
    "summary": "Top 10 per category with evidence",
    "responses": {
     "200": {
      "description": "all rankings"
     }
    }
   }
  },
  "/api/summary.json": {
   "get": {
    "operationId": "summary",
    "summary": "Counts sourced, tested and passing",
    "responses": {
     "200": {
      "description": "summary"
     }
    }
   }
  },
  "/mcp": {
   "post": {
    "operationId": "mcp",
    "summary": "MCP Streamable HTTP endpoint (JSON-RPC)",
    "responses": {
     "200": {
      "description": "JSON-RPC response"
     }
    }
   }
  }
 }
}