{
  "openapi": "3.1.0",
  "info": {
    "title": "talogen.dev API",
    "version": "1.1.0",
    "termsOfService": "https://talogen.dev/terms",
    "summary": "JSON API for Tal Ogen's agent-accessible portfolio: capability discovery, business-problem matching, engagement",
    "description": "Public API for Tal Ogen's agent-accessible portfolio. Three purposes: capability discovery (profile, AI transformation services, case studies, autonomous agents, candidate profile), problem matching (POST /api/v1/services/analyze returns fit, matched AI opportunities, relevant case studies, likely approach, considerations, a recommended first pilot, and an indicative scope for a described business workflow - deterministic heuristics, informational, never a quote), and engagement (POST /api/v1/contact delivers a message to a human - a role, or a business problem for an AI Opportunity Call). No authentication, no cost. Reads and analysis are side-effect-free.\n\nAsynchronous jobs: contact submission is an async job - POST /api/v1/contact returns 202 Accepted with the job id, a status_url, and a Location header pointing at the poll endpoint GET /api/v1/contact/{id}, which returns a content-free delivery record.\n\nIdempotency: POST /api/v1/contact accepts an optional Idempotency-Key header (up to 200 chars). Retrying with the same key and identical payload within 24h replays the original 202 (marked Idempotency-Replayed: true) without a second delivery, the same key with a different payload returns 422. Failed deliveries are not replayed, so retrying them is safe.\n\nPagination: list endpoints use cursor pagination - pass limit (1-100) and the opaque next_cursor from the previous page as cursor, next_cursor is null on the last page (a legacy offset parameter also works).\n\nRate limiting: soft per-instance limits advertised in RateLimit-Policy / RateLimit-Limit / RateLimit-Remaining / RateLimit-Reset response headers, with Retry-After on 429, most reads are served from the CDN edge cache (Cache-Control s-maxage) and never count.\n\nVersioning: the /api/v1 prefix is stable, any breaking change ships as /api/v2 with at least 90 days of overlap, announced via RFC 8594 Sunset headers on the deprecated version.\n\nOfficial clients: npm `npx talogen` (CLI + SDK), Python `pip install talogen` (client + CLI, https://pypi.org/project/talogen/), Go `go get github.com/TALOGEN777/talogen-go` (client + CLI, https://pkg.go.dev/github.com/TALOGEN777/talogen-go).",
    "contact": {
      "name": "Tal Ogen",
      "email": "contact@talogen.dev",
      "url": "https://talogen.dev/contact"
    },
    "license": {
      "name": "All content public",
      "identifier": "CC-BY-4.0"
    }
  },
  "servers": [
    {
      "url": "https://talogen.dev"
    }
  ],
  "security": [],
  "paths": {
    "/api/v1": {
      "get": {
        "operationId": "getApiIndex",
        "summary": "API index",
        "description": "Lists every endpoint with a one-line description, plus links to the OpenAPI spec, developer portal, and MCP server.",
        "responses": {
          "200": {
            "description": "Endpoint directory.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiIndex"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "Get profile",
        "description": "Tal Ogen's professional profile: headline, summary, about paragraphs, contact details (email, LinkedIn, GitHub), capability categories, and key strengths.",
        "responses": {
          "200": {
            "description": "The profile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/services": {
      "get": {
        "operationId": "getServices",
        "summary": "AI transformation services for businesses",
        "description": "Tal Ogen's AI transformation offer as structured data: positioning, audiences, what is not offered, the three engagement stages (AI Opportunity Call, AI Opportunity Audit, AI Pilot & Implementation), representative use cases, capability pillars (AI Opportunity Discovery, AI Implementation, Adoption), pricing stance (not published), engagement channels, and the MCP tools grouped by purpose. Generated from the homepage, so it always matches what humans see.",
        "responses": {
          "200": {
            "description": "The services object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Services"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/services/analyze": {
      "post": {
        "operationId": "analyzeBusinessProblem",
        "summary": "Analyze a business problem",
        "description": "Describe a business workflow or operational problem in plain language and receive: fit (strong / likely / partial / outside), the matching AI opportunities with likely approach and human-in-the-loop design, the closest case studies, considerations (risk, data, integrations), a recommended first pilot, an indicative scope, and how to engage. Deterministic keyword heuristics over the published services and case studies - informational, not a quote. Side-effect-free (counted as a read for rate limiting). Same logic as the analyze_business_problem MCP tool.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The analysis.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Analysis"
                }
              }
            }
          },
          "422": {
            "description": "problem is missing or too short.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/api/v1/services/case-studies": {
      "get": {
        "operationId": "getRelevantCaseStudies",
        "summary": "Case studies ranked against a problem or capability",
        "description": "Projects and agents ranked by relevance to a described problem or a capability (for example 'human-in-the-loop', 'document processing', 'workflow automation'), with why each is relevant. Same logic as the get_relevant_case_studies MCP tool.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "A business problem in plain language, or a capability to look for.",
            "schema": {
              "type": "string",
              "maxLength": 4000
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum results, 1-10 (default 5).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked case studies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaseStudyMatches"
                }
              }
            }
          },
          "422": {
            "description": "q is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/candidate": {
      "get": {
        "operationId": "getCandidate",
        "summary": "Get candidate profile",
        "description": "Machine-readable hiring facts: availability status, target roles, experience, location and remote policy, work authorization, languages.",
        "responses": {
          "200": {
            "description": "The candidate profile (same document as /.well-known/candidate.json).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Candidate"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List projects",
        "description": "Summaries of Tal Ogen's featured software projects. Use getProjectById for full problem/solution/result detail.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Tag"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Offset"
          },
          {
            "name": "flagship",
            "in": "query",
            "description": "Set to true to return only the flagship project(s).",
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project summaries, paginated.",
            "headers": {
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemList"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/api/v1/projects/{id}": {
      "get": {
        "operationId": "getProjectById",
        "summary": "Get project detail",
        "description": "Full detail for one project or agent by id: problem, solution, result, link, tags, image.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Id"
          }
        ],
        "responses": {
          "200": {
            "description": "The project or agent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "404": {
            "description": "Unknown id. The error hint lists all valid ids.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents": {
      "get": {
        "operationId": "listAgents",
        "summary": "List autonomous agents",
        "description": "Summaries of the autonomous AI agents Tal Ogen has designed and built. Use getAgentById for full detail.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Tag"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Offset"
          }
        ],
        "responses": {
          "200": {
            "description": "Agent summaries, paginated.",
            "headers": {
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemList"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/api/v1/agents/{id}": {
      "get": {
        "operationId": "getAgentById",
        "summary": "Get agent detail",
        "description": "Full detail for one autonomous agent by id (equivalent to getProjectById).",
        "parameters": [
          {
            "$ref": "#/components/parameters/Id"
          }
        ],
        "responses": {
          "200": {
            "description": "The agent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "404": {
            "description": "Unknown id. The error hint lists all valid ids.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contact": {
      "post": {
        "operationId": "submitContactMessage",
        "summary": "Send Tal a message (async job)",
        "description": "Send Tal a message - about a role, or a business problem for an AI Opportunity Call (the same delivery path as the contact_recruiter and request_ai_opportunity_call MCP tools). The API's one write: submits a message about a role, opportunity, or question as an asynchronous job. The 202 acknowledges acceptance, delivery runs through the Human For AI platform and a human reads and replies to reply_to. The Location header and status_url point at the delivery record. Send an Idempotency-Key header to make retries safe - an identical retry within 24h replays the original 202 without a second delivery.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              },
              "example": {
                "message": "Senior AI Product Manager role at Acme, remote-friendly. Interested in your Human For AI work - are you open to a call this week?",
                "reply_to": "recruiting@acme.com",
                "from": "Acme talent team",
                "subject": "Senior AI PM role"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Async job accepted. Delivery has been attempted inline, poll the URL in the Location header (also status_url in the body) for the delivery record. status is 'delivered' or 'failed' - failed submissions are safe to retry with the same Idempotency-Key.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/IdempotencyReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactJob"
                }
              }
            }
          },
          "422": {
            "description": "Invalid payload, or an Idempotency-Key reused with a different payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/api/v1/contact/{id}": {
      "get": {
        "operationId": "getContactStatus",
        "summary": "Get a message's delivery record",
        "description": "Poll endpoint for the contact async job. Content-free by design: it returns id, status, timestamps, and the upstream message id - never the message text or reply address.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Job id from the Location header of POST /api/v1/contact, e.g. 'CT-9F41C2AB7D3E5061'.",
            "schema": {
              "type": "string",
              "pattern": "^[\\w-]{1,40}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The delivery record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactJob"
                }
              }
            }
          },
          "404": {
            "description": "Unknown job id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "Id": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Project or agent id from listProjects / listAgents, e.g. 'human-for-ai'.",
        "schema": {
          "type": "string",
          "pattern": "^[\\w-]{1,100}$"
        }
      },
      "Tag": {
        "name": "tag",
        "in": "query",
        "description": "Only items whose tags contain this text (case-insensitive), e.g. 'MCP' or 'healthcare'.",
        "schema": {
          "type": "string"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "description": "Page size, 1-100 (default 100).",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 100
        }
      },
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "description": "Opaque pagination cursor: pass the previous response's next_cursor verbatim. Omit for the first page.",
        "schema": {
          "type": "string"
        }
      },
      "Offset": {
        "name": "offset",
        "in": "query",
        "description": "Legacy zero-based offset (default 0), prefer cursor. Ignored when cursor is present.",
        "schema": {
          "type": "integer",
          "minimum": 0,
          "default": 0
        }
      },
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "description": "Optional client-chosen key (max 200 chars) that makes retries safe: the same key with an identical payload within 24h replays the original 202 without a second delivery.",
        "schema": {
          "type": "string",
          "maxLength": 200
        }
      }
    },
    "headers": {
      "RateLimit-Remaining": {
        "description": "Requests remaining in the current per-instance window. Companions: RateLimit-Policy, RateLimit-Limit, RateLimit-Reset.",
        "schema": {
          "type": "integer"
        }
      },
      "Location": {
        "description": "Poll endpoint for the async contact job (same value as status_url in the body).",
        "schema": {
          "type": "string",
          "example": "/api/v1/contact/CT-9F41C2AB7D3E5061"
        }
      },
      "IdempotencyReplayed": {
        "description": "Present and true when this 202 is a replay of an earlier submission with the same Idempotency-Key (no second delivery happened).",
        "schema": {
          "type": "boolean"
        }
      }
    },
    "responses": {
      "TooManyRequests": {
        "description": "Per-instance soft rate limit exceeded. Honor Retry-After, CDN-cached reads are unaffected.",
        "headers": {
          "Retry-After": {
            "description": "Seconds until the window resets.",
            "schema": {
              "type": "integer"
            }
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "ApiIndex": {
        "type": "object",
        "description": "Directory of every API endpoint.",
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          },
          "mcp": {
            "type": "string",
            "format": "uri"
          },
          "endpoints": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "Profile": {
        "type": "object",
        "description": "Professional profile.",
        "properties": {
          "name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "about": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contact": {
            "type": "object",
            "properties": {
              "email": {
                "type": "string",
                "format": "email"
              },
              "linkedin": {
                "type": "string",
                "format": "uri"
              },
              "github": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "flagshipProject": {
            "type": "string",
            "format": "uri"
          },
          "skillCategories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "category": {
                  "type": "string"
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "pillar": {
                  "type": "string",
                  "enum": [
                    "discovery",
                    "implementation",
                    "adoption"
                  ],
                  "description": "Present on the three categories that form the AI-transformation capability object (see /api/v1/services)."
                }
              }
            }
          },
          "skills": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "aiTools": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "strengths": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Candidate": {
        "type": "object",
        "description": "Machine-readable hiring facts (schema owned by /.well-known/candidate.json).",
        "additionalProperties": true
      },
      "ItemSummary": {
        "type": "object",
        "description": "One project or agent, summary form.",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "flagship": {
            "type": "boolean"
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "problem": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "title"
        ]
      },
      "ItemList": {
        "type": "object",
        "description": "One page of items. Follow next_cursor (or the ready-made next URL) until it is null.",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Items in this page."
          },
          "total": {
            "type": "integer",
            "description": "Items matching the filters across all pages."
          },
          "limit": {
            "type": "integer"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque cursor for the next page, null when this is the last page."
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "URL of the next page (cursor pre-applied), null when this is the last page."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemSummary"
            }
          }
        },
        "required": [
          "count",
          "total",
          "next_cursor",
          "next",
          "items"
        ]
      },
      "ContactRequest": {
        "type": "object",
        "description": "A message for Tal about a role, opportunity, or question.",
        "properties": {
          "message": {
            "type": "string",
            "minLength": 5,
            "maxLength": 5000,
            "description": "The role, company, and any relevant detail."
          },
          "reply_to": {
            "type": "string",
            "format": "email",
            "description": "A real mailbox a human can reply to. Required."
          },
          "from": {
            "type": "string",
            "maxLength": 200,
            "description": "Who is reaching out - recruiter or agent name and company."
          },
          "subject": {
            "type": "string",
            "maxLength": 200,
            "description": "Short subject line."
          }
        },
        "required": [
          "message",
          "reply_to"
        ],
        "additionalProperties": false
      },
      "ContactJob": {
        "type": "object",
        "description": "Content-free delivery record for a contact async job: never contains the message text or reply address.",
        "properties": {
          "id": {
            "type": "string",
            "examples": [
              "CT-9F41C2AB7D3E5061"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "delivered",
              "failed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "delivered_at": {
            "type": "string",
            "format": "date-time"
          },
          "status_url": {
            "type": "string",
            "description": "Poll endpoint for this job (POST response only)."
          },
          "message_id": {
            "type": "string",
            "description": "Upstream delivery id from the Human For AI platform, when delivered."
          },
          "error": {
            "type": "string",
            "description": "Failure code when status is failed, retrying with the same Idempotency-Key is safe."
          },
          "message": {
            "type": "string",
            "description": "Human-readable next step (POST response only)."
          }
        },
        "required": [
          "id",
          "status",
          "created_at"
        ]
      },
      "Item": {
        "type": "object",
        "description": "Full detail for one project or agent.",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "flagship": {
            "type": "boolean"
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "problem": {
            "type": "string"
          },
          "solution": {
            "type": "string"
          },
          "result": {
            "type": "string",
            "description": "Alias of outcome, kept for backward compatibility."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "outcome": {
            "type": "string",
            "description": "What changed (the visible 'Outcome' label). `result` carries the same text for backward compatibility."
          }
        },
        "required": [
          "id",
          "title"
        ],
        "additionalProperties": true
      },
      "Error": {
        "type": "object",
        "description": "Structured error. Every non-2xx API response has this shape.",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "examples": [
                  "not_found",
                  "method_not_allowed"
                ]
              },
              "message": {
                "type": "string"
              },
              "hint": {
                "type": "string",
                "description": "How to recover - e.g. the list of valid ids."
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "Services": {
        "type": "object",
        "description": "AI transformation services for businesses, generated from the homepage.",
        "properties": {
          "name": {
            "type": "string"
          },
          "promise": {
            "type": "string"
          },
          "approach": {
            "type": "string"
          },
          "positioning": {
            "type": "string"
          },
          "audiences": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "not_offered": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                },
                "identifies": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "What the AI Opportunity Audit identifies."
                }
              }
            }
          },
          "useCases": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "outcome": {
                  "type": "string"
                }
              }
            }
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "discovery": {
                "$ref": "#/components/schemas/CapabilityPillar"
              },
              "implementation": {
                "$ref": "#/components/schemas/CapabilityPillar"
              },
              "adoption": {
                "$ref": "#/components/schemas/CapabilityPillar"
              }
            }
          },
          "pricing": {
            "type": "string"
          },
          "cta": {
            "type": "object",
            "properties": {
              "headline": {
                "type": "string"
              },
              "button": {
                "type": "string"
              }
            }
          },
          "engagement": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "tools": {
            "type": "object",
            "description": "MCP tools grouped by purpose.",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "rest": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "disclaimer": {
            "type": "string"
          }
        }
      },
      "CapabilityPillar": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AnalyzeRequest": {
        "type": "object",
        "required": [
          "problem"
        ],
        "properties": {
          "problem": {
            "type": "string",
            "minLength": 10,
            "maxLength": 4000,
            "description": "The workflow or problem: what happens, who does it, how often, which tools are involved, what hurts."
          },
          "industry": {
            "type": "string",
            "maxLength": 200
          },
          "team_size": {
            "type": "string",
            "maxLength": 100,
            "description": "People involved, or the size of the business."
          },
          "tools": {
            "type": "string",
            "maxLength": 500,
            "description": "Systems in use: email provider, CRM, spreadsheets, ERP, forms, messaging."
          }
        },
        "examples": [
          {
            "problem": "Every day about 80 customer emails arrive in a shared Outlook inbox. Two admins read each one, decide who it goes to, and manually update HubSpot.",
            "industry": "insurance brokerage",
            "team_size": "12",
            "tools": "Outlook, HubSpot, Excel"
          }
        ]
      },
      "Opportunity": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer"
          },
          "id": {
            "type": "string",
            "description": "Use-case id, matches Services.useCases[].id."
          },
          "title": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "matched_on": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expected_value": {
            "type": "string"
          },
          "implementation_difficulty": {
            "type": "string"
          },
          "likely_approach": {
            "type": "string"
          },
          "human_in_the_loop": {
            "type": "string"
          },
          "first_pilot": {
            "type": "string"
          }
        }
      },
      "CaseStudyMatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "flagship": {
            "type": "boolean"
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "problem": {
            "type": "string"
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relevance_score": {
            "type": "number"
          },
          "why_relevant": {
            "type": "string"
          },
          "detail": {
            "type": "string",
            "description": "How to fetch the full detail."
          }
        }
      },
      "CaseStudyMatches": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "matched_use_cases": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "matched_on": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "case_studies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CaseStudyMatch"
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "Analysis": {
        "type": "object",
        "description": "Heuristic, informational analysis - never a quote.",
        "properties": {
          "disclaimer": {
            "type": "string"
          },
          "problem": {
            "type": "string"
          },
          "fit": {
            "type": "string",
            "enum": [
              "strong",
              "likely",
              "partial",
              "outside"
            ]
          },
          "fit_explanation": {
            "type": "string"
          },
          "positioning": {
            "type": "string"
          },
          "matched_opportunities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opportunity"
            }
          },
          "suggested_approach": {
            "type": "string"
          },
          "considerations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "recommended_first_pilot": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "opportunity": {
                "type": "string"
              },
              "pilot": {
                "type": "string"
              },
              "human_in_the_loop": {
                "type": "string"
              }
            }
          },
          "relevant_case_studies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CaseStudyMatch"
            }
          },
          "indicative_scope": {
            "type": "object",
            "properties": {
              "size": {
                "type": "string",
                "enum": [
                  "small",
                  "medium",
                  "large"
                ]
              },
              "size_meaning": {
                "type": "string"
              },
              "phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "duration": {
                      "type": "string"
                    },
                    "output": {
                      "type": "string"
                    }
                  }
                }
              },
              "pricing": {
                "type": "string"
              }
            }
          },
          "what_tal_does_not_do": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "engagement": {
            "type": "object",
            "properties": {
              "stages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "next_step": {
                "type": "string"
              },
              "contact": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
