{
  "openapi": "3.1.0",
  "info": {
    "title": "Nynch API",
    "version": "1.0.0",
    "summary": "Nynch public API for agents: status, demo booking, and MCP tool schemas.",
    "description": "Nynch is the AI CRM for consultants and fractionals who win on relationships, not spray-and-pray outbound.\n\nThis specification covers:\n1. The nynch.com agent API (status, discovery, JSON errors).\n2. The public demo-booking REST function.\n3. Function-calling schemas for all 46 Nynch MCP tools. Those tools are invoked on the Streamable HTTP MCP server, not as REST paths on nynch.com.\n\nNynch developer resources: https://www.nynch.com/developers\nMCP handshake: https://www.nynch.com/.well-known/mcp\nWhen to use Nynch: https://www.nynch.com/llms.txt",
    "contact": {
      "name": "Nynch",
      "email": "support@nynch.com",
      "url": "https://www.nynch.com/contact"
    },
    "license": {
      "name": "Nynch Terms of Service",
      "url": "https://www.nynch.com/terms"
    }
  },
  "servers": [
    {
      "url": "https://www.nynch.com",
      "description": "Nynch marketing site and agent discovery API"
    },
    {
      "url": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1",
      "description": "Nynch public edge functions"
    }
  ],
  "tags": [
    {
      "name": "Agent discovery",
      "description": "Machine-readable Nynch developer resources."
    },
    {
      "name": "Demo booking",
      "description": "Public idempotent demo booking for buyer agents."
    },
    {
      "name": "Nynch MCP",
      "description": "Function-calling schemas for 46 MCP tools."
    }
  ],
  "paths": {
    "/api/v1/status": {
      "get": {
        "operationId": "getNynchApiStatus",
        "summary": "Nynch API status",
        "description": "Returns liveness for the published Nynch agent API. No authentication. Use this to verify JSON responses before calling authenticated MCP tools.",
        "tags": [
          "Agent discovery"
        ],
        "responses": {
          "200": {
            "description": "The Nynch agent API is reachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agent": {
      "get": {
        "operationId": "getNynchAgentIndex",
        "summary": "Nynch agent resource index",
        "description": "Lists the Nynch developer resources an agent should load first: OpenAPI, llms.txt, MCP handshake, docs, and the demo booking contract.",
        "tags": [
          "Agent discovery"
        ],
        "responses": {
          "200": {
            "description": "Discoverable Nynch developer resources.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentIndexResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getNynchOpenApiSpec",
        "summary": "Download the Nynch OpenAPI specification",
        "description": "Returns this OpenAPI 3.1 document. Unique operationId values and typed schemas are intended for LLM function calling.",
        "tags": [
          "Agent discovery"
        ],
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/ai-demo-agent": {
      "post": {
        "operationId": "bookNynchDemo",
        "summary": "List demo slots or book a Nynch founder demo",
        "description": "Public REST endpoint for buyer agents. action=slots returns ISO 8601 times. action=book creates the booking. Idempotent. No captcha, login, or qualification questions. Send JSON. Errors return JSON with code, message, and hint.",
        "tags": [
          "Demo booking"
        ],
        "servers": [
          {
            "url": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DemoAgentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Slot list or booking confirmation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemoAgentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/mcp/tools/search_contacts": {
      "post": {
        "operationId": "search_contacts",
        "summary": "Search contacts by name, company, or tags.",
        "description": "Search contacts by name, company, or tags. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"search_contacts\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Search term (name, email, company name)"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 10)"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "search_contacts",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_contact_context": {
      "post": {
        "operationId": "get_contact_context",
        "summary": "Get full context for a contact: profile, interactions, activities, notes, and relationship network.",
        "description": "Get full context for a contact: profile, interactions, activities, notes, and relationship network. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_contact_context\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_contact_context",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/search_deals": {
      "post": {
        "operationId": "search_deals",
        "summary": "Search deals by title, stage, or company.",
        "description": "Search deals by title, stage, or company. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"search_deals\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Search term (deal title, company name)"
                  },
                  "stage": {
                    "type": "string",
                    "description": "Filter by stage"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 10)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "search_deals",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_deal_context": {
      "post": {
        "operationId": "get_deal_context",
        "summary": "Get full deal context: details, stakeholders, learnings, coaching actions, and relationship network.",
        "description": "Get full deal context: details, stakeholders, learnings, coaching actions, and relationship network. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_deal_context\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "deal_id": {
                    "type": "string",
                    "description": "Deal UUID"
                  }
                },
                "required": [
                  "deal_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_deal_context",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/search_deals_by_inactivity": {
      "post": {
        "operationId": "search_deals_by_inactivity",
        "summary": "Find deals with no recent activity , useful for follow-up nudges and stalled-deal alerts.",
        "description": "Find deals with no recent activity , useful for follow-up nudges and stalled-deal alerts. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"search_deals_by_inactivity\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "days_inactive": {
                    "type": "number",
                    "description": "Minimum days since last activity (default 14)"
                  },
                  "stage": {
                    "type": "string",
                    "description": "Optional stage filter"
                  },
                  "include_closed": {
                    "type": "boolean",
                    "description": "Include won/lost deals (default false)"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 20)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "search_deals_by_inactivity",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_pipeline_summary": {
      "post": {
        "operationId": "get_pipeline_summary",
        "summary": "Pipeline health overview: active deals, stage distribution, pending nudges, and upcoming calendar.",
        "description": "Pipeline health overview: active deals, stage distribution, pending nudges, and upcoming calendar. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_pipeline_summary\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "format": {
                    "type": "string",
                    "description": "\"text\" (default) for prose, \"json\" for structured data"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_pipeline_summary",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_next_best_actions": {
      "post": {
        "operationId": "get_next_best_actions",
        "summary": "AI-assisted recommendations for what to do next based on your pipeline and relationships.",
        "description": "AI-assisted recommendations for what to do next based on your pipeline and relationships. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_next_best_actions\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Max actions to return (default 5)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_next_best_actions",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/list_buckets": {
      "post": {
        "operationId": "list_buckets",
        "summary": "List all buckets (lists/segments) with name, goal, contact count, and activity frequency.",
        "description": "List all buckets (lists/segments) with name, goal, contact count, and activity frequency. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"list_buckets\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "include_inactive": {
                    "type": "boolean",
                    "description": "Include inactive buckets (default false)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "list_buckets",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_bucket_contacts": {
      "post": {
        "operationId": "get_bucket_contacts",
        "summary": "Get all contacts assigned to a specific bucket.",
        "description": "Get all contacts assigned to a specific bucket. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_bucket_contacts\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "bucket_id": {
                    "type": "string",
                    "description": "Bucket UUID"
                  },
                  "bucket_name": {
                    "type": "string",
                    "description": "Bucket name (case-insensitive)"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 50)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_bucket_contacts",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_bucket_game_queue": {
      "post": {
        "operationId": "get_bucket_game_queue",
        "summary": "Get contacts waiting in The Daily Relationship Review queue , pending contacts that need to be sorted.",
        "description": "Get contacts waiting in The Daily Relationship Review queue , pending contacts that need to be sorted. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_bucket_game_queue\". Category: CRM Read. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Read",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "status": {
                    "type": "string",
                    "description": "Filter: waiting, processing, ready, skipped"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 20)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_bucket_game_queue",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/log_interaction": {
      "post": {
        "operationId": "log_interaction",
        "summary": "Record a contact interaction (call, email, meeting, note).",
        "description": "Record a contact interaction (call, email, meeting, note). Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"log_interaction\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "type": {
                    "type": "string",
                    "description": "call, email, meeting, note, linkedin_message"
                  },
                  "summary": {
                    "type": "string",
                    "description": "Brief summary"
                  },
                  "sentiment": {
                    "type": "string",
                    "description": "positive, neutral, negative"
                  }
                },
                "required": [
                  "contact_id",
                  "type",
                  "summary"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "log_interaction",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/update_deal_stage": {
      "post": {
        "operationId": "update_deal_stage",
        "summary": "Move a deal to a new pipeline stage.",
        "description": "Move a deal to a new pipeline stage. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"update_deal_stage\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "deal_id": {
                    "type": "string",
                    "description": "Deal UUID"
                  },
                  "new_stage": {
                    "type": "string",
                    "description": "Target stage"
                  }
                },
                "required": [
                  "deal_id",
                  "new_stage"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "update_deal_stage",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/create_task": {
      "post": {
        "operationId": "create_task",
        "summary": "Create a task or action item linked to a contact or deal.",
        "description": "Create a task or action item linked to a contact or deal. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"create_task\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Task title"
                  },
                  "description": {
                    "type": "string",
                    "description": "Task details"
                  },
                  "contact_id": {
                    "type": "string",
                    "description": "Linked contact UUID"
                  },
                  "deal_id": {
                    "type": "string",
                    "description": "Linked deal UUID"
                  },
                  "due_date": {
                    "type": "string",
                    "description": "Due date (ISO 8601)"
                  }
                },
                "required": [
                  "title"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "create_task",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/create_note": {
      "post": {
        "operationId": "create_note",
        "summary": "Add a note to a contact (supports markdown).",
        "description": "Add a note to a contact (supports markdown). Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"create_note\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "content": {
                    "type": "string",
                    "description": "Note content"
                  }
                },
                "required": [
                  "contact_id",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "create_note",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/create_contact": {
      "post": {
        "operationId": "create_contact",
        "summary": "Create a new contact. Auto-links to existing company by domain.",
        "description": "Create a new contact. Auto-links to existing company by domain. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"create_contact\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Full name"
                  },
                  "email": {
                    "type": "string",
                    "description": "Primary email"
                  },
                  "title": {
                    "type": "string",
                    "description": "Job title"
                  },
                  "company_name": {
                    "type": "string",
                    "description": "Company name"
                  },
                  "company_domain": {
                    "type": "string",
                    "description": "Company domain"
                  },
                  "linkedin_url": {
                    "type": "string",
                    "description": "LinkedIn profile URL"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Phone number"
                  },
                  "location": {
                    "type": "string",
                    "description": "Location"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Tags to apply"
                  },
                  "lead_source": {
                    "type": "string",
                    "description": "How sourced"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "create_contact",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/update_contact": {
      "post": {
        "operationId": "update_contact",
        "summary": "Update fields on an existing contact. Only provided fields are changed.",
        "description": "Update fields on an existing contact. Only provided fields are changed. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"update_contact\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "name": {
                    "type": "string",
                    "description": "Full name"
                  },
                  "email": {
                    "type": "string",
                    "description": "Email"
                  },
                  "title": {
                    "type": "string",
                    "description": "Job title"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Replace tags"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "update_contact",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/add_contact_to_bucket": {
      "post": {
        "operationId": "add_contact_to_bucket",
        "summary": "Add a contact to a bucket (list/segment).",
        "description": "Add a contact to a bucket (list/segment). Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"add_contact_to_bucket\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "bucket_name": {
                    "type": "string",
                    "description": "Bucket name"
                  },
                  "bucket_id": {
                    "type": "string",
                    "description": "Bucket UUID"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "add_contact_to_bucket",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/create_deal": {
      "post": {
        "operationId": "create_deal",
        "summary": "Create a new deal in the pipeline.",
        "description": "Create a new deal in the pipeline. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"create_deal\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Deal title"
                  },
                  "stage": {
                    "type": "string",
                    "description": "Pipeline stage"
                  },
                  "company_id": {
                    "type": "string",
                    "description": "Company UUID"
                  },
                  "primary_contact_id": {
                    "type": "string",
                    "description": "Primary contact UUID"
                  },
                  "value": {
                    "type": "number",
                    "description": "Deal value"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency code (default: EUR)"
                  },
                  "close_date": {
                    "type": "string",
                    "description": "Expected close date"
                  }
                },
                "required": [
                  "title",
                  "stage"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "create_deal",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/create_company": {
      "post": {
        "operationId": "create_company",
        "summary": "Create a new company in the CRM.",
        "description": "Create a new company in the CRM. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"create_company\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Company name"
                  },
                  "domain": {
                    "type": "string",
                    "description": "Company domain"
                  },
                  "industry": {
                    "type": "string",
                    "description": "Industry"
                  },
                  "employee_range": {
                    "type": "string",
                    "description": "Size range"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "create_company",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/delete_contact": {
      "post": {
        "operationId": "delete_contact",
        "summary": "Soft-delete a contact by ID. Can be recovered.",
        "description": "Soft-delete a contact by ID. Can be recovered. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"delete_contact\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "delete_contact",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/bulk_delete_contacts": {
      "post": {
        "operationId": "bulk_delete_contacts",
        "summary": "Soft-delete multiple contacts matching a tag or ID list.",
        "description": "Soft-delete multiple contacts matching a tag or ID list. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"bulk_delete_contacts\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "tag": {
                    "type": "string",
                    "description": "Delete all contacts with this tag"
                  },
                  "contact_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Delete by ID list"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "bulk_delete_contacts",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/update_commitment": {
      "post": {
        "operationId": "update_commitment",
        "summary": "Mark a commitment as completed or update its details.",
        "description": "Mark a commitment as completed or update its details. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"update_commitment\". Category: CRM Write. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "CRM Write",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "commitment_id": {
                    "type": "string",
                    "description": "Commitment UUID"
                  },
                  "is_completed": {
                    "type": "boolean",
                    "description": "Set true to mark completed"
                  },
                  "title": {
                    "type": "string",
                    "description": "Updated title"
                  },
                  "due_date": {
                    "type": "string",
                    "description": "Updated due date"
                  }
                },
                "required": [
                  "commitment_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "update_commitment",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_authority_score": {
      "post": {
        "operationId": "get_authority_score",
        "summary": "Get your authority score across 6 dimensions: positioning, differentiation, thought leadership, inbound signals, credibility, and content consistency.",
        "description": "Get your authority score across 6 dimensions: positioning, differentiation, thought leadership, inbound signals, credibility, and content consistency. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_authority_score\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_authority_score",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_commitments": {
      "post": {
        "operationId": "get_commitments",
        "summary": "Get commitments (promises/tasks) for a contact or deal with Say/Do tracking.",
        "description": "Get commitments (promises/tasks) for a contact or deal with Say/Do tracking. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_commitments\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Filter by contact"
                  },
                  "deal_id": {
                    "type": "string",
                    "description": "Filter by deal"
                  },
                  "status": {
                    "type": "string",
                    "description": "pending, completed, overdue, all"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_commitments",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_buying_committee": {
      "post": {
        "operationId": "get_buying_committee",
        "summary": "Get the buying committee / stakeholder map for a deal with roles, influence, and sentiment.",
        "description": "Get the buying committee / stakeholder map for a deal with roles, influence, and sentiment. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_buying_committee\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "deal_id": {
                    "type": "string",
                    "description": "Deal UUID"
                  }
                },
                "required": [
                  "deal_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_buying_committee",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_contact_signals": {
      "post": {
        "operationId": "get_contact_signals",
        "summary": "Get recent signals: job changes, company changes, LinkedIn activity, buying intent.",
        "description": "Get recent signals: job changes, company changes, LinkedIn activity, buying intent. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_contact_signals\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 20)"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_contact_signals",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_interaction_history": {
      "post": {
        "operationId": "get_interaction_history",
        "summary": "Full interaction timeline: emails, meetings, calls, activities , with direction and sentiment.",
        "description": "Full interaction timeline: emails, meetings, calls, activities , with direction and sentiment. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_interaction_history\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 30)"
                  },
                  "type": {
                    "type": "string",
                    "description": "email, meeting, call, note, all"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_interaction_history",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_relationship_score": {
      "post": {
        "operationId": "get_relationship_score",
        "summary": "5-factor relationship strength score: recency, frequency, reciprocity, depth, outcome.",
        "description": "5-factor relationship strength score: recency, frequency, reciprocity, depth, outcome. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_relationship_score\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_relationship_score",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/export_context_briefing": {
      "post": {
        "operationId": "export_context_briefing",
        "summary": "Export a full AI-ready context briefing for a contact or deal.",
        "description": "Export a full AI-ready context briefing for a contact or deal. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"export_context_briefing\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  },
                  "deal_id": {
                    "type": "string",
                    "description": "Deal UUID"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "export_context_briefing",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_relationship_trends": {
      "post": {
        "operationId": "get_relationship_trends",
        "summary": "Analyze relationship trends , is engagement growing, stable, or declining?",
        "description": "Analyze relationship trends , is engagement growing, stable, or declining? Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_relationship_trends\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "description": "Contact UUID"
                  }
                },
                "required": [
                  "contact_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_relationship_trends",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_at_risk_relationships": {
      "post": {
        "operationId": "get_at_risk_relationships",
        "summary": "Find contacts whose relationship scores have dropped or who haven't been contacted recently.",
        "description": "Find contacts whose relationship scores have dropped or who haven't been contacted recently. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_at_risk_relationships\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Max results (default 20)"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_at_risk_relationships",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_deal_intelligence": {
      "post": {
        "operationId": "get_deal_intelligence",
        "summary": "Synthesized deal health: velocity trend, stakeholder coverage, commitment follow-through, risk factors.",
        "description": "Synthesized deal health: velocity trend, stakeholder coverage, commitment follow-through, risk factors. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_deal_intelligence\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "deal_id": {
                    "type": "string",
                    "description": "Deal UUID"
                  }
                },
                "required": [
                  "deal_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_deal_intelligence",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_weekly_briefing": {
      "post": {
        "operationId": "get_weekly_briefing",
        "summary": "Weekly summary: new interactions, relationship changes, deal movements, overdue commitments, recommended actions.",
        "description": "Weekly summary: new interactions, relationship changes, deal movements, overdue commitments, recommended actions. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_weekly_briefing\". Category: Relationship Intelligence. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Relationship Intelligence",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_weekly_briefing",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/register_agent": {
      "post": {
        "operationId": "register_agent",
        "summary": "Register an external agent with Nynch. Returns agent ID and confirms capabilities.",
        "description": "Register an external agent with Nynch. Returns agent ID and confirms capabilities. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"register_agent\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "agent_name": {
                    "type": "string",
                    "description": "Unique agent name"
                  },
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "research, outreach, enrichment, analysis, scheduling, reporting"
                  },
                  "description": {
                    "type": "string",
                    "description": "What this agent does"
                  },
                  "archetype": {
                    "type": "string",
                    "description": "producer, consumer, coordinator, critic"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "version, model, custom fields"
                  }
                },
                "required": [
                  "agent_name",
                  "capabilities"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "register_agent",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/list_agents": {
      "post": {
        "operationId": "list_agents",
        "summary": "List all registered agents with status and capabilities.",
        "description": "List all registered agents with status and capabilities. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"list_agents\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "status": {
                    "type": "string",
                    "description": "active, paused, revoked, all"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "list_agents",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/agent_heartbeat": {
      "post": {
        "operationId": "agent_heartbeat",
        "summary": "Send a heartbeat to confirm agent is alive.",
        "description": "Send a heartbeat to confirm agent is alive. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"agent_heartbeat\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "agent_name": {
                    "type": "string",
                    "description": "Your registered agent name"
                  }
                },
                "required": [
                  "agent_name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "agent_heartbeat",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/write_context": {
      "post": {
        "operationId": "write_context",
        "summary": "Write a key-value pair to the shared agent context store.",
        "description": "Write a key-value pair to the shared agent context store. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"write_context\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "context_key": {
                    "type": "string",
                    "description": "Key, e.g. \"deal:abc:research_notes\""
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "JSON value to store"
                  },
                  "namespace": {
                    "type": "string",
                    "description": "shared (default), or private:<agent_name>"
                  },
                  "ttl_hours": {
                    "type": "number",
                    "description": "Hours until expiry"
                  }
                },
                "required": [
                  "context_key",
                  "value"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "write_context",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/read_context": {
      "post": {
        "operationId": "read_context",
        "summary": "Read from the shared agent context store. Supports prefix matching with trailing *.",
        "description": "Read from the shared agent context store. Supports prefix matching with trailing *. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"read_context\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "context_key": {
                    "type": "string",
                    "description": "Exact key or prefix with wildcard"
                  },
                  "namespace": {
                    "type": "string",
                    "description": "Filter by namespace"
                  }
                },
                "required": [
                  "context_key"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "read_context",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/create_handoff": {
      "post": {
        "operationId": "create_handoff",
        "summary": "Request another agent to perform a task. Routes by agent name or capability.",
        "description": "Request another agent to perform a task. Routes by agent name or capability. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"create_handoff\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "task_description": {
                    "type": "string",
                    "description": "What the target agent should do"
                  },
                  "to_agent_name": {
                    "type": "string",
                    "description": "Target agent name"
                  },
                  "to_capability": {
                    "type": "string",
                    "description": "Route to any agent with this capability"
                  },
                  "input_context": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Structured input"
                  },
                  "priority": {
                    "type": "string",
                    "description": "critical, high, normal, low"
                  }
                },
                "required": [
                  "task_description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "create_handoff",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/get_handoffs": {
      "post": {
        "operationId": "get_handoffs",
        "summary": "Get pending handoffs assigned to this agent.",
        "description": "Get pending handoffs assigned to this agent. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"get_handoffs\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "agent_name": {
                    "type": "string",
                    "description": "Your agent name"
                  },
                  "status": {
                    "type": "string",
                    "description": "pending, accepted, in_progress, all"
                  }
                },
                "required": [
                  "agent_name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "get_handoffs",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/complete_handoff": {
      "post": {
        "operationId": "complete_handoff",
        "summary": "Mark a handoff as completed (or failed) with results.",
        "description": "Mark a handoff as completed (or failed) with results. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"complete_handoff\". Category: Agent Orchestration. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Agent Orchestration",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "handoff_id": {
                    "type": "string",
                    "description": "Handoff UUID"
                  },
                  "status": {
                    "type": "string",
                    "description": "completed or failed"
                  },
                  "result": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Output data"
                  },
                  "error_message": {
                    "type": "string",
                    "description": "Error details if failed"
                  }
                },
                "required": [
                  "handoff_id",
                  "status"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "complete_handoff",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/list_context_sources": {
      "post": {
        "operationId": "list_context_sources",
        "summary": "List safe read-only context sources available to you. Use before querying when you are unsure where relevant Nynch or connected-app context lives.",
        "description": "List safe read-only context sources available to you. Use before querying when you are unsure where relevant Nynch or connected-app context lives. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"list_context_sources\". Category: Context Query. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Context Query",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "category": {
                    "type": "string",
                    "description": "Filter sources by category"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "list_context_sources",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/search_context_sources": {
      "post": {
        "operationId": "search_context_sources",
        "summary": "Search safe context sources by natural-language keyword. Returns metadata only, not row data.",
        "description": "Search safe context sources by natural-language keyword. Returns metadata only, not row data. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"search_context_sources\". Category: Context Query. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Context Query",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Natural-language keyword"
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "search_context_sources",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/describe_context_source": {
      "post": {
        "operationId": "describe_context_source",
        "summary": "Describe one context source: purpose, columns, filters, limits, and availability. Returns metadata only.",
        "description": "Describe one context source: purpose, columns, filters, limits, and availability. Returns metadata only. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"describe_context_source\". Category: Context Query. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Context Query",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "source": {
                    "type": "string",
                    "description": "Context source id"
                  }
                },
                "required": [
                  "source"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "describe_context_source",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/list_context_columns": {
      "post": {
        "operationId": "list_context_columns",
        "summary": "List selectable columns and allowed filters for one context source.",
        "description": "List selectable columns and allowed filters for one context source. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"list_context_columns\". Category: Context Query. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Context Query",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "source": {
                    "type": "string",
                    "description": "Context source id"
                  }
                },
                "required": [
                  "source"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "list_context_columns",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    },
    "/mcp/tools/query_context": {
      "post": {
        "operationId": "query_context",
        "summary": "Read a bounded slice from one safe context source using a constrained query object. Read-only. Does not accept raw SQL.",
        "description": "Read a bounded slice from one safe context source using a constrained query object. Read-only. Does not accept raw SQL. Call this as MCP JSON-RPC 2.0 method tools/call on the Nynch Streamable HTTP endpoint, with name \"query_context\". Category: Context Query. Authenticate with a Nynch API key (Bearer). Rate limit: 1000 requests per hour per key.",
        "tags": [
          "Context Query",
          "Nynch MCP"
        ],
        "security": [
          {
            "nynchApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "source": {
                    "type": "string",
                    "description": "Context source id"
                  },
                  "select": {
                    "type": "array",
                    "items": {},
                    "description": "Columns to return"
                  },
                  "filters": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Allowed filters for this source"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Max rows (bounded)"
                  }
                },
                "required": [
                  "source"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP tool result payload for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The JSON body or query is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid Nynch API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No matching operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "405": {
            "description": "HTTP method is not allowed on this path.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "406": {
            "description": "No acceptable representation for the Accept header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-mcp-tool": "query_context",
        "x-mcp-endpoint": "https://crcrwtjzqzinfzokianr.supabase.co/functions/v1/mcp-server"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "nynchApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Nynch MCP API key from Settings, Integrations, Claude and AI Assistants."
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "code",
              "message",
              "hint",
              "docs",
              "status"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "not_found",
                  "method_not_allowed",
                  "not_acceptable",
                  "bad_request",
                  "unauthorized"
                ]
              },
              "message": {
                "type": "string"
              },
              "hint": {
                "type": "string"
              },
              "docs": {
                "type": "string",
                "format": "uri"
              },
              "status": {
                "type": "integer"
              }
            }
          }
        }
      },
      "StatusResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "ok",
          "product",
          "docs",
          "openapi",
          "mcp"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "product": {
            "type": "string"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "mcp": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "AgentIndexResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "product",
          "when_to_use",
          "resources"
        ],
        "properties": {
          "product": {
            "type": "string"
          },
          "when_to_use": {
            "type": "string"
          },
          "resources": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      },
      "DemoAgentRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "slots",
              "book"
            ]
          },
          "slotIso": {
            "type": "string",
            "format": "date-time",
            "description": "Required when action is book."
          },
          "name": {
            "type": "string",
            "description": "Buyer name. Required when action is book."
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Buyer email. Required when action is book."
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone. Required when action is book."
          }
        }
      },
      "DemoAgentResponse": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "success": {
            "type": "boolean"
          },
          "slots": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-time"
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Nynch developer resources, MCP server, and authentication.",
    "url": "https://www.nynch.com/developers"
  }
}