{
  "serverInfo": {
    "name": "primavera",
    "title": "Primavera",
    "version": "1.0.1",
    "description": "Prospect lists of businesses from Google Maps and their websites: target, count, export with emails.",
    "websiteUrl": "https://primaverapp.com",
    "icons": [
      {
        "src": "https://primaverapp.com/images/brand/primavera-mark.png",
        "mimeType": "image/png",
        "sizes": [
          "1024x1024"
        ]
      }
    ]
  },
  "transport": {
    "type": "streamable-http",
    "url": "https://primaverapp.com/api/mcp"
  },
  "authentication": {
    "required": true,
    "schemes": [
      "bearer"
    ]
  },
  "documentation": "https://primaverapp.com/docs/api",
  "tools": [
    {
      "name": "get_account",
      "title": "Account and balance",
      "description": "Plan, credit balance, Agency fair use per country and rate limits of the Primavera account that owns the API key. Call it first: it tells what the account can afford.\n\nFree.\n\nSame call as GET /api/v1/account of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Account and balance",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "find_areas",
      "title": "Find an area",
      "description": "Find an area from a place as written: region, département, commune, postal code, or a radius around a town (\"Lyon\", \"33\", \"30 km around Nantes\"). Use the \"area\" field of a result (or of \"match\" when its status is \"resolved\") as the area of suggest_categories or as search.area.\n\nFree.\n\nSame call as GET /api/v1/areas of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120,
            "description": "A place as written: \"Lyon\", \"31000\", \"Gironde\", \"within 30 km of Nantes\", \"the South-West\"."
          },
          "country": {
            "description": "Search this country only (ISO alpha-2, lower case). Default: every open country.",
            "type": "string",
            "enum": [
              "af",
              "za",
              "al",
              "dz",
              "de",
              "ad",
              "ao",
              "ai",
              "ag",
              "sa",
              "ar",
              "am",
              "aw",
              "au",
              "at",
              "az",
              "bs",
              "bh",
              "bd",
              "bb",
              "be",
              "bz",
              "bj",
              "bm",
              "bt",
              "bo",
              "ba",
              "bw",
              "br",
              "bn",
              "bg",
              "bf",
              "bi",
              "kh",
              "cm",
              "ca",
              "cv",
              "cl",
              "cn",
              "cy",
              "co",
              "km",
              "cg",
              "cd",
              "kr",
              "cr",
              "ci",
              "hr",
              "cw",
              "dk",
              "dj",
              "dm",
              "eg",
              "ae",
              "ec",
              "er",
              "es",
              "ee",
              "sz",
              "va",
              "us",
              "et",
              "fj",
              "fi",
              "fr",
              "ga",
              "gm",
              "ge",
              "gh",
              "gi",
              "gr",
              "gd",
              "gl",
              "gu",
              "gt",
              "gg",
              "gn",
              "gq",
              "gw",
              "gy",
              "ht",
              "hn",
              "hu",
              "cx",
              "im",
              "nf",
              "ax",
              "ky",
              "cc",
              "ck",
              "fo",
              "fk",
              "mp",
              "mh",
              "pn",
              "sb",
              "tc",
              "vg",
              "vi",
              "in",
              "id",
              "iq",
              "ie",
              "is",
              "il",
              "it",
              "jm",
              "jp",
              "je",
              "jo",
              "kz",
              "ke",
              "kg",
              "ki",
              "xk",
              "kw",
              "la",
              "ls",
              "lv",
              "lb",
              "lr",
              "ly",
              "li",
              "lt",
              "lu",
              "mk",
              "mg",
              "my",
              "mw",
              "mv",
              "ml",
              "mt",
              "ma",
              "mu",
              "mr",
              "mx",
              "fm",
              "md",
              "mc",
              "mn",
              "me",
              "ms",
              "mz",
              "mm",
              "na",
              "nr",
              "np",
              "ni",
              "ne",
              "ng",
              "nu",
              "no",
              "nz",
              "om",
              "ug",
              "uz",
              "pk",
              "pw",
              "pa",
              "pg",
              "py",
              "nl",
              "bq",
              "pe",
              "ph",
              "pl",
              "pr",
              "pt",
              "qa",
              "hk",
              "mo",
              "cf",
              "do",
              "ro",
              "gb",
              "rw",
              "kn",
              "sm",
              "sx",
              "vc",
              "sh",
              "lc",
              "sv",
              "ws",
              "as",
              "st",
              "sn",
              "rs",
              "sc",
              "sl",
              "sg",
              "sk",
              "si",
              "so",
              "sd",
              "ss",
              "lk",
              "se",
              "ch",
              "sr",
              "sj",
              "tj",
              "tw",
              "tz",
              "td",
              "cz",
              "io",
              "ps",
              "th",
              "tl",
              "tg",
              "tk",
              "to",
              "tt",
              "tn",
              "tm",
              "tr",
              "tv",
              "ua",
              "uy",
              "vu",
              "ve",
              "vn",
              "ye",
              "zm",
              "zw"
            ]
          },
          "level": {
            "description": "Only this level of area.",
            "type": "string",
            "enum": [
              "region",
              "departement",
              "commune"
            ]
          },
          "limit": {
            "description": "Areas returned (default 10, at most 20).",
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "radiusKm": {
            "description": "A radius around the place, in km (1 to 200).",
            "type": "number",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "q"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Find an area",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "suggest_categories",
      "title": "Turn a target into categories",
      "description": "Entry point for ANY target: call it before any search, and never invent category ids. Give the target in plain words, WITHOUT the place (\"independent car repair shops\", \"restaurants that could use an online booking tool\") and the area from find_areas. Primavera's engine picks the Google Maps categories in groups and counts them in the area. Returns \"selection\" (groups, categories left out and why, what the data cannot tell) and \"search\", the object that count_search, get_search_metrics, preview_search, estimate_list and create_list take: pass it on as is, or edited. Costs 100 credits (maxCredits ≥ 100), refunded when no selection comes back. A request too vague is refused with clarification_needed, refunded: ask the user the question in error.details, then call again with the answer.\n\nPaid: maxCredits (the most credits this call may spend, never exceeded) and idempotencyKey (a new UUID v4 for this operation) are required; without them nothing runs. To retry after an error or a timeout, send the same idempotencyKey with the same arguments: nothing is charged twice. Ask the user before calling it.\n\nSame call as POST /api/v1/categories/suggest of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "request": {
            "type": "string",
            "minLength": 2,
            "maxLength": 600,
            "description": "The target as the user would say it, WITHOUT the place: \"independent car repair shops\", \"restaurants that could use a booking tool\". What the client sells works too."
          },
          "country": {
            "description": "Country to search (default: that of \"search\", else fr).",
            "type": "string",
            "enum": [
              "af",
              "za",
              "al",
              "dz",
              "de",
              "ad",
              "ao",
              "ai",
              "ag",
              "sa",
              "ar",
              "am",
              "aw",
              "au",
              "at",
              "az",
              "bs",
              "bh",
              "bd",
              "bb",
              "be",
              "bz",
              "bj",
              "bm",
              "bt",
              "bo",
              "ba",
              "bw",
              "br",
              "bn",
              "bg",
              "bf",
              "bi",
              "kh",
              "cm",
              "ca",
              "cv",
              "cl",
              "cn",
              "cy",
              "co",
              "km",
              "cg",
              "cd",
              "kr",
              "cr",
              "ci",
              "hr",
              "cw",
              "dk",
              "dj",
              "dm",
              "eg",
              "ae",
              "ec",
              "er",
              "es",
              "ee",
              "sz",
              "va",
              "us",
              "et",
              "fj",
              "fi",
              "fr",
              "ga",
              "gm",
              "ge",
              "gh",
              "gi",
              "gr",
              "gd",
              "gl",
              "gu",
              "gt",
              "gg",
              "gn",
              "gq",
              "gw",
              "gy",
              "ht",
              "hn",
              "hu",
              "cx",
              "im",
              "nf",
              "ax",
              "ky",
              "cc",
              "ck",
              "fo",
              "fk",
              "mp",
              "mh",
              "pn",
              "sb",
              "tc",
              "vg",
              "vi",
              "in",
              "id",
              "iq",
              "ie",
              "is",
              "il",
              "it",
              "jm",
              "jp",
              "je",
              "jo",
              "kz",
              "ke",
              "kg",
              "ki",
              "xk",
              "kw",
              "la",
              "ls",
              "lv",
              "lb",
              "lr",
              "ly",
              "li",
              "lt",
              "lu",
              "mk",
              "mg",
              "my",
              "mw",
              "mv",
              "ml",
              "mt",
              "ma",
              "mu",
              "mr",
              "mx",
              "fm",
              "md",
              "mc",
              "mn",
              "me",
              "ms",
              "mz",
              "mm",
              "na",
              "nr",
              "np",
              "ni",
              "ne",
              "ng",
              "nu",
              "no",
              "nz",
              "om",
              "ug",
              "uz",
              "pk",
              "pw",
              "pa",
              "pg",
              "py",
              "nl",
              "bq",
              "pe",
              "ph",
              "pl",
              "pr",
              "pt",
              "qa",
              "hk",
              "mo",
              "cf",
              "do",
              "ro",
              "gb",
              "rw",
              "kn",
              "sm",
              "sx",
              "vc",
              "sh",
              "lc",
              "sv",
              "ws",
              "as",
              "st",
              "sn",
              "rs",
              "sc",
              "sl",
              "sg",
              "sk",
              "si",
              "so",
              "sd",
              "ss",
              "lk",
              "se",
              "ch",
              "sr",
              "sj",
              "tj",
              "tw",
              "tz",
              "td",
              "cz",
              "io",
              "ps",
              "th",
              "tl",
              "tg",
              "tk",
              "to",
              "tt",
              "tn",
              "tm",
              "tr",
              "tv",
              "ua",
              "uy",
              "vu",
              "ve",
              "vn",
              "ye",
              "zm",
              "zw"
            ]
          },
          "area": {
            "description": "Area to search, as returned by GET /areas (field \"area\"). Default: that of \"search\", else the whole country.",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "country"
                  },
                  "withoutOverseas": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "region"
                  },
                  "codes": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9-]{1,40}$"
                    }
                  }
                },
                "required": [
                  "type",
                  "codes"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "departement"
                  },
                  "codes": {
                    "minItems": 1,
                    "maxItems": 110,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9-]{1,40}$"
                    }
                  }
                },
                "required": [
                  "type",
                  "codes"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "commune"
                  },
                  "codes": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9-]{1,40}$"
                    }
                  }
                },
                "required": [
                  "type",
                  "codes"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "postal"
                  },
                  "codes": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9 -]{2,10}$"
                    }
                  }
                },
                "required": [
                  "type",
                  "codes"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "radius"
                  },
                  "lat": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  "lng": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  },
                  "km": {
                    "type": "number",
                    "minimum": 0.1,
                    "maximum": 500
                  }
                },
                "required": [
                  "type",
                  "lat",
                  "lng",
                  "km"
                ],
                "additionalProperties": false
              }
            ]
          },
          "search": {
            "type": "object",
            "description": "A search to refine: its area, filters, exclusions and groups are kept (the groups become the previous selection). The \"search\" object returned by suggest_categories (target, area, filters, sort), sent as is or edited; its full schema is the \"search\" input of count_search. An invalid search is refused with invalid_request and the fields to fix."
          },
          "previous": {
            "description": "The selection to update (default: the groups of \"search\"); null starts afresh.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "groups": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "ids": {
                          "minItems": 1,
                          "maxItems": 600,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          }
                        },
                        "prudence": {
                          "description": "True when the engine added this group by prudence (a neighbouring activity, not the core of the request): a list delivers the core of the request first.",
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "label",
                        "ids"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "groups"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "maxCredits": {
            "type": "integer",
            "minimum": 100,
            "description": "Must be at least 100: the price of a suggestion."
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid",
            "description": "A new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice."
          }
        },
        "required": [
          "request",
          "maxCredits",
          "idempotencyKey"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Turn a target into categories",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "find_categories",
      "title": "Look up a category",
      "description": "Look up a single Google Maps category by name (French or English), with its number of places. To build a target, use suggest_categories instead; use this only to check or add one category id to search.categories.ids.\n\nFree.\n\nSame call as GET /api/v1/categories of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "description": "Category name, French or English (empty: the most frequent categories).",
            "type": "string",
            "maxLength": 100
          },
          "country": {
            "description": "Counts are those of this country (default fr).",
            "type": "string",
            "enum": [
              "af",
              "za",
              "al",
              "dz",
              "de",
              "ad",
              "ao",
              "ai",
              "ag",
              "sa",
              "ar",
              "am",
              "aw",
              "au",
              "at",
              "az",
              "bs",
              "bh",
              "bd",
              "bb",
              "be",
              "bz",
              "bj",
              "bm",
              "bt",
              "bo",
              "ba",
              "bw",
              "br",
              "bn",
              "bg",
              "bf",
              "bi",
              "kh",
              "cm",
              "ca",
              "cv",
              "cl",
              "cn",
              "cy",
              "co",
              "km",
              "cg",
              "cd",
              "kr",
              "cr",
              "ci",
              "hr",
              "cw",
              "dk",
              "dj",
              "dm",
              "eg",
              "ae",
              "ec",
              "er",
              "es",
              "ee",
              "sz",
              "va",
              "us",
              "et",
              "fj",
              "fi",
              "fr",
              "ga",
              "gm",
              "ge",
              "gh",
              "gi",
              "gr",
              "gd",
              "gl",
              "gu",
              "gt",
              "gg",
              "gn",
              "gq",
              "gw",
              "gy",
              "ht",
              "hn",
              "hu",
              "cx",
              "im",
              "nf",
              "ax",
              "ky",
              "cc",
              "ck",
              "fo",
              "fk",
              "mp",
              "mh",
              "pn",
              "sb",
              "tc",
              "vg",
              "vi",
              "in",
              "id",
              "iq",
              "ie",
              "is",
              "il",
              "it",
              "jm",
              "jp",
              "je",
              "jo",
              "kz",
              "ke",
              "kg",
              "ki",
              "xk",
              "kw",
              "la",
              "ls",
              "lv",
              "lb",
              "lr",
              "ly",
              "li",
              "lt",
              "lu",
              "mk",
              "mg",
              "my",
              "mw",
              "mv",
              "ml",
              "mt",
              "ma",
              "mu",
              "mr",
              "mx",
              "fm",
              "md",
              "mc",
              "mn",
              "me",
              "ms",
              "mz",
              "mm",
              "na",
              "nr",
              "np",
              "ni",
              "ne",
              "ng",
              "nu",
              "no",
              "nz",
              "om",
              "ug",
              "uz",
              "pk",
              "pw",
              "pa",
              "pg",
              "py",
              "nl",
              "bq",
              "pe",
              "ph",
              "pl",
              "pr",
              "pt",
              "qa",
              "hk",
              "mo",
              "cf",
              "do",
              "ro",
              "gb",
              "rw",
              "kn",
              "sm",
              "sx",
              "vc",
              "sh",
              "lc",
              "sv",
              "ws",
              "as",
              "st",
              "sn",
              "rs",
              "sc",
              "sl",
              "sg",
              "sk",
              "si",
              "so",
              "sd",
              "ss",
              "lk",
              "se",
              "ch",
              "sr",
              "sj",
              "tj",
              "tw",
              "tz",
              "td",
              "cz",
              "io",
              "ps",
              "th",
              "tl",
              "tg",
              "tk",
              "to",
              "tt",
              "tn",
              "tm",
              "tr",
              "tv",
              "ua",
              "uy",
              "vu",
              "ve",
              "vn",
              "ye",
              "zm",
              "zw"
            ]
          },
          "limit": {
            "description": "Categories returned (default 20, at most 50).",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Look up a category",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "find_networks",
      "title": "Look up a brand or network",
      "description": "Look up a brand, franchise or network by name. Use its id in search.filters.networks ({ \"mode\": \"only\" | \"exclude\", \"ids\": [...] }); mode \"exclude\" without ids removes every known network (independent businesses only).\n\nFree.\n\nSame call as GET /api/v1/networks of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60,
            "description": "Brand or network name (\"Century 21\", \"McDonald's\")."
          },
          "limit": {
            "description": "Networks returned (default 10, at most 50).",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": [
          "q"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Look up a brand or network",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "count_search",
      "title": "Count a search",
      "description": "Count the places of a search (the \"search\" returned by suggest_categories). Its input describes the search object in full (target, area, filters one by one, sort): read it to edit a search. Places already delivered to the account are left out unless search.excludeDelivered is false. When \"exact\" is false, say \"≈ N\".\n\nFree.\n\nSame call as POST /api/v1/search/count of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "country": {
                "description": "ISO 3166-1 alpha-2 code, lower case (default fr). Only open countries are searchable.",
                "type": "string",
                "enum": [
                  "af",
                  "za",
                  "al",
                  "dz",
                  "de",
                  "ad",
                  "ao",
                  "ai",
                  "ag",
                  "sa",
                  "ar",
                  "am",
                  "aw",
                  "au",
                  "at",
                  "az",
                  "bs",
                  "bh",
                  "bd",
                  "bb",
                  "be",
                  "bz",
                  "bj",
                  "bm",
                  "bt",
                  "bo",
                  "ba",
                  "bw",
                  "br",
                  "bn",
                  "bg",
                  "bf",
                  "bi",
                  "kh",
                  "cm",
                  "ca",
                  "cv",
                  "cl",
                  "cn",
                  "cy",
                  "co",
                  "km",
                  "cg",
                  "cd",
                  "kr",
                  "cr",
                  "ci",
                  "hr",
                  "cw",
                  "dk",
                  "dj",
                  "dm",
                  "eg",
                  "ae",
                  "ec",
                  "er",
                  "es",
                  "ee",
                  "sz",
                  "va",
                  "us",
                  "et",
                  "fj",
                  "fi",
                  "fr",
                  "ga",
                  "gm",
                  "ge",
                  "gh",
                  "gi",
                  "gr",
                  "gd",
                  "gl",
                  "gu",
                  "gt",
                  "gg",
                  "gn",
                  "gq",
                  "gw",
                  "gy",
                  "ht",
                  "hn",
                  "hu",
                  "cx",
                  "im",
                  "nf",
                  "ax",
                  "ky",
                  "cc",
                  "ck",
                  "fo",
                  "fk",
                  "mp",
                  "mh",
                  "pn",
                  "sb",
                  "tc",
                  "vg",
                  "vi",
                  "in",
                  "id",
                  "iq",
                  "ie",
                  "is",
                  "il",
                  "it",
                  "jm",
                  "jp",
                  "je",
                  "jo",
                  "kz",
                  "ke",
                  "kg",
                  "ki",
                  "xk",
                  "kw",
                  "la",
                  "ls",
                  "lv",
                  "lb",
                  "lr",
                  "ly",
                  "li",
                  "lt",
                  "lu",
                  "mk",
                  "mg",
                  "my",
                  "mw",
                  "mv",
                  "ml",
                  "mt",
                  "ma",
                  "mu",
                  "mr",
                  "mx",
                  "fm",
                  "md",
                  "mc",
                  "mn",
                  "me",
                  "ms",
                  "mz",
                  "mm",
                  "na",
                  "nr",
                  "np",
                  "ni",
                  "ne",
                  "ng",
                  "nu",
                  "no",
                  "nz",
                  "om",
                  "ug",
                  "uz",
                  "pk",
                  "pw",
                  "pa",
                  "pg",
                  "py",
                  "nl",
                  "bq",
                  "pe",
                  "ph",
                  "pl",
                  "pr",
                  "pt",
                  "qa",
                  "hk",
                  "mo",
                  "cf",
                  "do",
                  "ro",
                  "gb",
                  "rw",
                  "kn",
                  "sm",
                  "sx",
                  "vc",
                  "sh",
                  "lc",
                  "sv",
                  "ws",
                  "as",
                  "st",
                  "sn",
                  "rs",
                  "sc",
                  "sl",
                  "sg",
                  "sk",
                  "si",
                  "so",
                  "sd",
                  "ss",
                  "lk",
                  "se",
                  "ch",
                  "sr",
                  "sj",
                  "tj",
                  "tw",
                  "tz",
                  "td",
                  "cz",
                  "io",
                  "ps",
                  "th",
                  "tl",
                  "tg",
                  "tk",
                  "to",
                  "tt",
                  "tn",
                  "tm",
                  "tr",
                  "tv",
                  "ua",
                  "uy",
                  "vu",
                  "ve",
                  "vn",
                  "ye",
                  "zm",
                  "zw"
                ]
              },
              "categories": {
                "description": "The target. Absent or empty: every category of the area.",
                "type": "object",
                "properties": {
                  "request": {
                    "description": "The target as the user wrote it: title of the search and default list name. Set by /categories/suggest.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 600
                  },
                  "groups": {
                    "description": "Category groups (label and category ids), disjoint, as returned by /categories/suggest. Remove a group to narrow the target.",
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        },
                        "ids": {
                          "minItems": 1,
                          "maxItems": 600,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          }
                        },
                        "prudence": {
                          "description": "True when the engine added this group by prudence (a neighbouring activity, not the core of the request): a list delivers the core of the request first.",
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "label",
                        "ids"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "ids": {
                    "description": "Single category ids (from /categories), outside the groups.",
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    }
                  },
                  "mode": {
                    "description": "'primary_or_generic' (default): the main category is in the list, or a secondary one when the main one is generic; 'primary': main category only; 'any': main or secondary (broader, less precise).",
                    "type": "string",
                    "enum": [
                      "primary_or_generic",
                      "primary",
                      "any"
                    ]
                  },
                  "concepts": {
                    "description": "Legacy trade ids of older searches. Prefer groups.",
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9_]{2,60}$"
                    }
                  }
                },
                "additionalProperties": false
              },
              "excludedCategoryIds": {
                "description": "Categories to remove from the target.",
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                }
              },
              "excludedConcepts": {
                "description": "Legacy trade ids to remove.",
                "maxItems": 40,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_]{2,60}$"
                }
              },
              "area": {
                "description": "The area, as returned by /areas (area field). Default: the whole country.",
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "country"
                      },
                      "withoutOverseas": {
                        "type": "boolean",
                        "const": true
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "region"
                      },
                      "codes": {
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9-]{1,40}$"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "codes"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "departement"
                      },
                      "codes": {
                        "minItems": 1,
                        "maxItems": 110,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9-]{1,40}$"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "codes"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "commune"
                      },
                      "codes": {
                        "minItems": 1,
                        "maxItems": 1000,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9-]{1,40}$"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "codes"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "postal"
                      },
                      "codes": {
                        "minItems": 1,
                        "maxItems": 1000,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9 -]{2,10}$"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "codes"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "radius"
                      },
                      "lat": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                      },
                      "lng": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                      },
                      "km": {
                        "type": "number",
                        "minimum": 0.1,
                        "maximum": 500
                      }
                    },
                    "required": [
                      "type",
                      "lat",
                      "lng",
                      "km"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "filters": {
                "type": "object",
                "properties": {
                  "hasWebsite": {
                    "type": "boolean",
                    "description": "true: places with a website; false: without."
                  },
                  "websiteReachable": {
                    "type": "boolean",
                    "description": "true: the website answered when last read."
                  },
                  "hasPhone": {
                    "type": "boolean",
                    "description": "true: places with a phone number."
                  },
                  "emailStatus": {
                    "minItems": 1,
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "deliverable",
                        "catch_all",
                        "unverified"
                      ]
                    },
                    "description": "Places with an email address: send [\"deliverable\",\"catch_all\",\"unverified\"] (all three). Prefer withEmail on /search/estimate and POST /lists."
                  },
                  "ratingMin": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5,
                    "description": "Google rating bounds."
                  },
                  "ratingMax": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5,
                    "description": "Google rating bounds."
                  },
                  "reviewsMin": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Number of Google reviews bounds."
                  },
                  "reviewsMax": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Number of Google reviews bounds."
                  },
                  "includeClosed": {
                    "default": false,
                    "type": "boolean",
                    "description": "Include permanently closed places (default false)."
                  },
                  "socials": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "facebook",
                        "instagram",
                        "linkedin",
                        "youtube",
                        "twitter",
                        "tiktok",
                        "pinterest",
                        "threads"
                      ]
                    },
                    "description": "Every listed social network is linked from the website: facebook, instagram, linkedin, youtube, twitter, tiktok, pinterest, threads."
                  },
                  "technologies": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "At least one of these website technologies (WordPress, Wix, Shopify…)."
                  },
                  "pixels": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "description": "At least one of these advertising pixels (Meta Pixel, Google Ads…)."
                  },
                  "hasContactForm": {
                    "type": "boolean",
                    "description": "The website has a contact form."
                  },
                  "nameContains": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 100,
                    "description": "Part of the name (accents and case ignored), 2 to 100 characters."
                  },
                  "hotelStarsMin": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5,
                    "description": "Hotels: minimum stars."
                  },
                  "hideHiddenCategories": {
                    "default": true,
                    "type": "boolean",
                    "description": "Hide categories nobody prospects (bus stops, car parks…). Default true."
                  },
                  "networks": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "exclude",
                          "only"
                        ]
                      },
                      "ids": {
                        "minItems": 1,
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z0-9_]{2,60}$"
                        }
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "additionalProperties": false,
                    "description": "{ \"mode\": \"exclude\" | \"only\", \"ids\"?: [...] }: brands and networks (ids from GET /networks). Without ids, \"exclude\" removes every confirmed network (\"independent\" businesses)."
                  },
                  "excludeServicePoints": {
                    "default": true,
                    "description": "Remove service points (parcel lockers, charging stations, ATMs): nobody to talk to. Default true.",
                    "type": "boolean"
                  },
                  "ownEmailOnly": {
                    "type": "boolean",
                    "description": "Only places whose email address is not shared with other places (an address common to a whole network leads to the network, not to this place)."
                  },
                  "naf": {
                    "minItems": 1,
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^(?:[A-U]|\\d{2}(?:\\.\\d(?:\\d[A-Z]?)?)?)$"
                    },
                    "description": "France only: NAF rev. 2 activity codes of any level (\"56\", \"56.10A\"). Keeps places whose company is known in the French registry."
                  },
                  "headcountMin": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000,
                    "description": "France only: company headcount bounds (INSEE brackets fully inside the bounds)."
                  },
                  "headcountMax": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000,
                    "description": "France only: company headcount bounds (INSEE brackets fully inside the bounds)."
                  },
                  "legalForms": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^(?:\\d|\\d{2}|\\d{4})$"
                    },
                    "description": "France only: INSEE legal category codes (\"5\", \"57\", \"5710\")."
                  },
                  "companyAgeMin": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 200,
                    "description": "France only: company created at least / less than N years ago."
                  },
                  "companyAgeMax": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200,
                    "description": "France only: company created at least / less than N years ago."
                  },
                  "companyCategories": {
                    "minItems": 1,
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "PME",
                        "ETI",
                        "GE"
                      ]
                    },
                    "description": "France only: \"PME\", \"ETI\", \"GE\" (INSEE company size category)."
                  },
                  "onePer": {
                    "type": "object",
                    "properties": {
                      "by": {
                        "type": "string",
                        "enum": [
                          "entreprise",
                          "groupe"
                        ]
                      },
                      "keep": {
                        "default": "siege",
                        "type": "string",
                        "enum": [
                          "siege",
                          "classement"
                        ]
                      }
                    },
                    "required": [
                      "by"
                    ],
                    "additionalProperties": false,
                    "description": "France only: { \"by\": \"entreprise\" | \"groupe\", \"keep\"?: \"siege\" | \"classement\" }: one place per company or group (head office first, or best ranked). Places without a known company all stay."
                  }
                },
                "additionalProperties": false
              },
              "sort": {
                "description": "Row order of previews and lists: 'default', 'reviews_desc', 'rating_desc', 'name_asc'.",
                "type": "string",
                "enum": [
                  "default",
                  "reviews_desc",
                  "rating_desc",
                  "name_asc"
                ]
              },
              "excludeDelivered": {
                "default": true,
                "description": "Leave out the places already delivered to your account: not counted, never billed twice. Default true.",
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "description": "The search, as returned by POST /categories/suggest (field \"search\"). Send it back as is, edited if needed."
          }
        },
        "required": [
          "search"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Count a search",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_search_metrics",
      "title": "Figures of a search",
      "description": "The figures of a search in one call: total, places with an email address, a phone number, a website, and the estimated number of email addresses.\n\nFree.\n\nSame call as POST /api/v1/search/metrics of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "object",
            "description": "The search, as returned by POST /categories/suggest (field \"search\"). Send it back as is, edited if needed. The \"search\" object returned by suggest_categories (target, area, filters, sort), sent as is or edited; its full schema is the \"search\" input of count_search. An invalid search is refused with invalid_request and the fields to fix."
          }
        },
        "required": [
          "search"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Figures of a search",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "preview_search",
      "title": "Preview a search",
      "description": "Up to 25 sample places of a search (name, city, category, rating, reviews). Contact details are booleans here: email addresses, phone numbers and websites only come with a list (create_list).\n\nFree.\n\nSame call as POST /api/v1/search/preview of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "object",
            "description": "The search, as returned by POST /categories/suggest (field \"search\"). Send it back as is, edited if needed. The \"search\" object returned by suggest_categories (target, area, filters, sort), sent as is or edited; its full schema is the \"search\" input of count_search. An invalid search is refused with invalid_request and the fields to fix."
          },
          "limit": {
            "description": "Rows returned (default 10, at most 25).",
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          },
          "offset": {
            "description": "Rows to skip (default 0).",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "search"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Preview a search",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "estimate_list",
      "title": "Estimate a list",
      "description": "Rows, cost in credits and balance after, for a list of N rows of a search (up to 50,000). Tell the user the cost, then send \"cost\" as maxCredits to create_list with the same search, rows and withEmail. In a rarely searched area it returns kind \"zone\": the list fills itself after creation (create_list with maxCredits ≥ zoneEstimate.creditCap).\n\nFree.\n\nSame call as POST /api/v1/search/estimate of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "object",
            "description": "The search, as returned by POST /categories/suggest (field \"search\"). Send it back as is, edited if needed. The \"search\" object returned by suggest_categories (target, area, filters, sort), sent as is or edited; its full schema is the \"search\" input of count_search. An invalid search is refused with invalid_request and the fields to fix."
          },
          "rows": {
            "description": "Rows wanted in the list (default 500, at most 50000).",
            "type": "integer",
            "minimum": 1,
            "maximum": 50000
          },
          "withEmail": {
            "description": "True: a list of places WITH an email address (found addresses first, then guessed and checked ones, each address checked at 1 credit). False: the email filter is removed. Absent: the search as is.",
            "type": "boolean"
          }
        },
        "required": [
          "search"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Estimate a list",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "create_list",
      "title": "Create a list",
      "description": "Export the places of a search into a new list, with their contact details (up to 50,000 rows). Price: 1 credit per place never delivered to this account (Agency: included under fair use); withEmail: only places with an email address (found ones first, then guessed and verified ones); verifyEmails: plus 1 credit per address verified. maxCredits is never exceeded: send the \"cost\" of estimate_list, once the user agreed. One export at a time per account. While the list says \"creating\", follow it with get_list.\n\nPaid: maxCredits (the most credits this call may spend, never exceeded) and idempotencyKey (a new UUID v4 for this operation) are required; without them nothing runs. To retry after an error or a timeout, send the same idempotencyKey with the same arguments: nothing is charged twice. Ask the user before calling it.\n\nSame call as POST /api/v1/lists of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "List name, as shown in \"My lists\"."
          },
          "search": {
            "type": "object",
            "description": "The search, as returned by /categories/suggest (then narrowed with /areas, filters…). The \"search\" object returned by suggest_categories (target, area, filters, sort), sent as is or edited; its full schema is the \"search\" input of count_search. An invalid search is refused with invalid_request and the fields to fix."
          },
          "rows": {
            "description": "Rows wanted (at most 50000). With withEmail: email addresses wanted. Required unless wholeArea is true.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50000
          },
          "withEmail": {
            "description": "true = the \"With email\" choice of the app: places with an email address only; found addresses are delivered first, others are guessed on the websites then checked (1 credit per valid address), and the verification of the addresses is reserved at creation (1 credit per address, unused credits returned).",
            "type": "boolean"
          },
          "verifyEmails": {
            "description": "true = the \"Verify emails\" box of the app: the addresses this list delivers are verified (deliverable, risky, undeliverable), 1 credit per address, reserved at creation and inside maxCredits (send maxCredits ≥ export cost + rows); unused credits are returned. Up to 10000 rows; not for rarely searched areas; included in withEmail lists.",
            "type": "boolean"
          },
          "wholeArea": {
            "description": "Rarely searched area only (estimate returned kind \"zone\"): fill the list with the whole area instead of a number of rows.",
            "type": "boolean"
          },
          "maxCredits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "The most credits this call may spend (required on every paid call, with an Idempotency-Key header). Never exceeded."
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid",
            "description": "A new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice."
          }
        },
        "required": [
          "name",
          "search",
          "maxCredits",
          "idempotencyKey"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create a list",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "list_lists",
      "title": "My lists",
      "description": "The lists of the account, newest first, page by page (send nextCursor back as cursor).\n\nFree.\n\nSame call as GET /api/v1/lists of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "description": "nextCursor of the previous page.",
            "type": "string",
            "maxLength": 200
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "annotations": {
        "title": "My lists",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_list",
      "title": "Status of a list",
      "description": "Status of a list (creating, ready, filling, failed), rows, credits spent, progress of the export, of the guessed email addresses and of the email verification (progress.emailCheck.unverified = what verify_list_emails would cost), contents and latest jobs. While it is not ready, call it again every 10 seconds or more.\n\nFree.\n\nSame call as GET /api/v1/lists/{id} of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          }
        },
        "required": [
          "listId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Status of a list",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_list_items",
      "title": "Rows of a list",
      "description": "Rows of a ready list with every contact detail, page by page (nextCursor). Keep limit small (50 or less) and choose columns: large pages flood the conversation. For the whole list, use prepare_list_file.\n\nFree.\n\nSame call as GET /api/v1/lists/{id}/items of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "cursor": {
            "description": "nextCursor of the previous page.",
            "type": "string",
            "maxLength": 200
          },
          "limit": {
            "default": 100,
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          },
          "columns": {
            "description": "Comma-separated column keys; default: every column of the CSV.",
            "type": "string",
            "maxLength": 2000
          }
        },
        "required": [
          "listId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Rows of a list",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "complete_list",
      "title": "Complete a list",
      "description": "Add places to a list from its original search; places already in the list are skipped. Priced as an export: 1 credit per place never delivered to the account (Agency: included under fair use).\n\nPaid: maxCredits (the most credits this call may spend, never exceeded) and idempotencyKey (a new UUID v4 for this operation) are required; without them nothing runs. To retry after an error or a timeout, send the same idempotencyKey with the same arguments: nothing is charged twice. Ask the user before calling it.\n\nSame call as POST /api/v1/lists/{id}/complete of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "rows": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50000,
            "description": "Places to add from the original search (places already in the list are skipped)."
          },
          "maxCredits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "The most credits this call may spend (required on every paid call, with an Idempotency-Key header). Never exceeded."
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid",
            "description": "A new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice."
          }
        },
        "required": [
          "listId",
          "rows",
          "maxCredits",
          "idempotencyKey"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Complete a list",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "prepare_list_file",
      "title": "Prepare a file",
      "description": "Prepare the CSV file (every column) or the Excel file (the columns you choose) of a ready list. Then call get_list_file until the file is ready. A file stays available 7 days.\n\nFree. idempotencyKey (a new UUID v4) is required; reuse it only to retry the very same call.\n\nSame call as POST /api/v1/lists/{id}/files of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "format": {
            "type": "string",
            "enum": [
              "csv",
              "xlsx"
            ]
          },
          "columns": {
            "description": "xlsx only: column keys (see GET /lists/{id}/items, \"columns\"). A CSV always holds every column.",
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid",
            "description": "A new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice."
          }
        },
        "required": [
          "listId",
          "format",
          "idempotencyKey"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Prepare a file",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_list_file",
      "title": "Download a file",
      "description": "Status of a prepared file. Once it is ready, \"url\" is a download link valid 120 seconds: download it at once or give it to the user, and call again for a new link.\n\nFree.\n\nSame call as GET /api/v1/lists/{id}/files/{fileId} of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "fileId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a prepared file (from prepare_list_file)."
          }
        },
        "required": [
          "listId",
          "fileId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Download a file",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "estimate_list_job",
      "title": "Estimate a job",
      "description": "Estimate a job on a list before starting it: places eligible and the most credits it can spend. Jobs: executives (company executives, France and the United States only), summary (a 3-sentence summary of each website), question (a yes/no question asked to each website), filter (a criterion judged on the data we hold, no website read).\n\nFree.\n\nSame call as POST /api/v1/lists/{id}/jobs/estimate of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "tool": {
            "type": "string",
            "enum": [
              "executives",
              "summary",
              "question",
              "filter"
            ],
            "description": "executives: company executives (France and the United States only); summary: 3-sentence summary of the website; question: a yes/no question asked to the website; filter: a criterion judged on the data we hold (no website read)."
          },
          "question": {
            "description": "tool \"question\" only.",
            "type": "string",
            "minLength": 5,
            "maxLength": 300
          },
          "criterion": {
            "description": "tool \"filter\" only.",
            "type": "string",
            "minLength": 3,
            "maxLength": 300
          },
          "scope": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "all"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "conforming"
                  },
                  "jobId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "A finished filter or question job of this list."
                  }
                },
                "required": [
                  "kind",
                  "jobId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "undetermined"
                  },
                  "jobId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "A finished filter or question job of this list: only its \"undetermined\" places."
                  }
                },
                "required": [
                  "kind",
                  "jobId"
                ],
                "additionalProperties": false
              }
            ],
            "description": "Places the job runs on: the whole list (default), the places a finished qualification judged conforming, or those it could not decide."
          }
        },
        "required": [
          "listId",
          "tool"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Estimate a job",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "start_list_job",
      "title": "Start a job",
      "description": "Start a job on a list; it runs in the background. Each place is billed on its result, never beyond maxCredits nor the estimate: send estimate.maxCredits of estimate_list_job, with the same tool, question, criterion and scope. Follow it with get_job; results land in get_list_items.\n\nPaid: maxCredits (the most credits this call may spend, never exceeded) and idempotencyKey (a new UUID v4 for this operation) are required; without them nothing runs. To retry after an error or a timeout, send the same idempotencyKey with the same arguments: nothing is charged twice. Ask the user before calling it.\n\nSame call as POST /api/v1/lists/{id}/jobs of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "tool": {
            "type": "string",
            "enum": [
              "executives",
              "summary",
              "question",
              "filter"
            ],
            "description": "executives: company executives (France and the United States only); summary: 3-sentence summary of the website; question: a yes/no question asked to the website; filter: a criterion judged on the data we hold (no website read)."
          },
          "question": {
            "description": "tool \"question\" only.",
            "type": "string",
            "minLength": 5,
            "maxLength": 300
          },
          "criterion": {
            "description": "tool \"filter\" only.",
            "type": "string",
            "minLength": 3,
            "maxLength": 300
          },
          "scope": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "all"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "conforming"
                  },
                  "jobId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "A finished filter or question job of this list."
                  }
                },
                "required": [
                  "kind",
                  "jobId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "undetermined"
                  },
                  "jobId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "A finished filter or question job of this list: only its \"undetermined\" places."
                  }
                },
                "required": [
                  "kind",
                  "jobId"
                ],
                "additionalProperties": false
              }
            ],
            "description": "Places the job runs on: the whole list (default), the places a finished qualification judged conforming, or those it could not decide."
          },
          "maxCredits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "The most credits this call may spend (required on every paid call, with an Idempotency-Key header). Never exceeded."
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid",
            "description": "A new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice."
          }
        },
        "required": [
          "listId",
          "tool",
          "maxCredits",
          "idempotencyKey"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Start a job",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_job",
      "title": "Progress of a job",
      "description": "Progress of a job: status, places done and billed, credits spent; for a finished filter or question job, the places per verdict.\n\nFree.\n\nSame call as GET /api/v1/jobs/{id} of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a job (from start_list_job or get_list)."
          }
        },
        "required": [
          "jobId"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Progress of a job",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "verify_list_emails",
      "title": "Verify the emails of a list",
      "description": "Verify the email addresses of a ready list (deliverable, risky, undeliverable): 1 credit per address that gets a verdict; the credits of the others are returned. maxCredits is the number of addresses you accept to verify: send progress.emailCheck.unverified of get_list.\n\nPaid: maxCredits (the most credits this call may spend, never exceeded) and idempotencyKey (a new UUID v4 for this operation) are required; without them nothing runs. To retry after an error or a timeout, send the same idempotencyKey with the same arguments: nothing is charged twice. Ask the user before calling it.\n\nSame call as POST /api/v1/lists/{id}/email-check of the REST API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of a list of the account (from create_list or list_lists)."
          },
          "maxCredits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "The most credits this call may spend (required on every paid call, with an Idempotency-Key header). Never exceeded."
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid",
            "description": "A new UUID v4 for this operation (sent as the Idempotency-Key of the API). Reuse it only to retry the very same call: the saved result comes back, nothing is charged twice."
          }
        },
        "required": [
          "listId",
          "maxCredits",
          "idempotencyKey"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Verify the emails of a list",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ],
  "resources": [],
  "prompts": []
}