{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.tenda.eshmere.ai",
    "site": "eshmere.ai",
    "addresses": [
      {
        "address": "216.150.16.129",
        "endpoints": 474,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.16.0/24",
          "country": "US"
        }
      },
      {
        "address": "216.150.1.129",
        "endpoints": 449,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.1.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "216.150.16.129",
          "216.150.1.129"
        ],
        "first_seen": "2026-11-24T04:50:07.523Z",
        "last_seen": "2026-11-24T04:50:07.523Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.150.16.1",
          "216.150.1.1"
        ],
        "first_seen": "2026-11-23T04:50:03.224Z",
        "last_seen": "2026-11-23T04:50:03.224Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.150.16.193",
          "216.150.1.193"
        ],
        "first_seen": "2026-11-22T04:50:01.774Z",
        "last_seen": "2026-11-22T04:50:01.774Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "Server header \"Vercel\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "tenda",
      "version": "0.1.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 663,
      "sample": [
        {
          "id": "39",
          "url": "https://www.almostimpossible.agency/mcp",
          "server_name": "agency.almostimpossible/site",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:34:01.208Z"
        },
        {
          "id": "144",
          "url": "https://mcp.agentgates.ai/compute",
          "server_name": "ai.agentgates/compute",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:35:04.167Z"
        },
        {
          "id": "278",
          "url": "https://asrm.ai/mcp",
          "server_name": "ai.asrm/asrm",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:38:01.379Z"
        },
        {
          "id": "375",
          "url": "https://api.betslipdoctor.ai/api/mcp",
          "server_name": "ai.betslipdoctor/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:40:16.502Z"
        },
        {
          "id": "395",
          "url": "https://property.bluebed.ai/mcp",
          "server_name": "ai.bluebed.property/new-launches",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:41:03.093Z"
        },
        {
          "id": "430",
          "url": "https://www.budgetseo.ai/api/mcp",
          "server_name": "ai.budgetseo/budget-seo-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:42:01.287Z"
        },
        {
          "id": "540",
          "url": "https://www.clearthesis.ai/mcp",
          "server_name": "ai.clearthesis/clearthesis",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:44:04.214Z"
        },
        {
          "id": "670",
          "url": "https://www.decisionlog.ai/api/mcp",
          "server_name": "ai.decisionlog/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:47:02.624Z"
        },
        {
          "id": "1078",
          "url": "https://api.gosummer.ai/mcp",
          "server_name": "ai.gosummer/summer",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:55:06.808Z"
        },
        {
          "id": "1375",
          "url": "https://api.last-price.ai/api/mcp/rpc",
          "server_name": "ai.last-price/pricing",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T05:03:02.501Z"
        },
        {
          "id": "1480",
          "url": "https://makerportal.ai/api/mcp",
          "server_name": "ai.makerportal/compute",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T05:06:01.382Z"
        },
        {
          "id": "1574",
          "url": "https://www.mosaya.ai/api/mcp",
          "server_name": "ai.mosaya/practice",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:45:03.744Z"
        },
        {
          "id": "1616",
          "url": "https://nerdnoir.ai/api/mcp",
          "server_name": "ai.nerdnoir/nerdy",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:46:01.972Z"
        },
        {
          "id": "1706",
          "url": "https://openstays.ai/api/mcp",
          "server_name": "ai.openstays/property-passports",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:47:04.921Z"
        },
        {
          "id": "1815",
          "url": "https://polargate.ai/api/mcp",
          "server_name": "ai.polargate/polargate",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:48:11.237Z"
        },
        {
          "id": "1843",
          "url": "https://www.preferly.ai/mcp",
          "server_name": "ai.preferly/preferly",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:48:12.136Z"
        },
        {
          "id": "1908",
          "url": "https://radmail.ai/api/mcp/sandbox",
          "server_name": "ai.radmail/radmail-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:49:02.001Z"
        },
        {
          "id": "2125",
          "url": "https://servicefront.ai/api/mcp/read",
          "server_name": "ai.servicefront/front-desk",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:51:03.023Z"
        },
        {
          "id": "2155",
          "url": "https://countersign.signalry.ai/mcp?ref=mcp-registry",
          "server_name": "ai.signalry/countersign",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:52:15.173Z"
        },
        {
          "id": "2482",
          "url": "https://www.structupath.ai/api/mcp",
          "server_name": "ai.structupath/steel-tools",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:53:02.137Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "ai.eshmere",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "787",
    "server_name": "ai.eshmere/tenda",
    "url": "https://mcp.tenda.eshmere.ai/mcp",
    "host": "mcp.tenda.eshmere.ai",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-24T04:50:07.523Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "18ad84afef68d5e91bbafff415036617968cc5d1aec959b47889ab201557fb0c",
    "first_listed_at": "2026-11-21T04:49:00.950Z",
    "created_at": "2026-11-21T04:30:16.880Z",
    "resolved_addresses": [
      "216.150.16.129",
      "216.150.1.129"
    ]
  },
  "server": {
    "name": "ai.eshmere/tenda",
    "title": "Winquill",
    "description": "Public tenders and contract awards in the UK, US, Canada and EU, and help preparing bids.",
    "version": "0.2.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://winquill.com",
    "published_at": "2026-10-28T05:31:08.660Z",
    "updated_at": "2026-10-28T05:31:08.660Z",
    "first_seen": "2026-11-21T04:30:16.246Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "runs-agents"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T14:51:07.606Z"
  },
  "operator": {
    "key": "eshmere.ai",
    "name": "eshmere.ai",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 4,
    "answered": 4,
    "answered_percent": 100,
    "avg_listing_latency_ms": 896,
    "first_check_in_window": "2026-11-21T04:49:00.950Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-24",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "18ad84afef68d5e91bbafff415036617968cc5d1aec959b47889ab201557fb0c",
    "tools": 44,
    "resources": 2,
    "prompts": 0,
    "first_seen": "2026-11-21T04:49:01.795Z",
    "tool_names": [
      "search_tenders",
      "get_tender_details",
      "search_contract_awards",
      "assess_tender_fit",
      "check_bid_readiness",
      "draft_bid_response",
      "review_bid_draft",
      "watch_tenders",
      "list_watches",
      "stop_watch",
      "get_tender_updates",
      "add_tender_documents",
      "save_company_profile",
      "get_pipeline_status",
      "add_to_pipeline",
      "record_portal_account",
      "record_bid_call",
      "update_bid_sprint",
      "assign_task",
      "move_in_pipeline",
      "remove_from_pipeline",
      "choose_alerts",
      "start_bid_draft",
      "continue_bid_draft",
      "get_bid_draft",
      "rewrite_bid_answer",
      "add_winning_bid",
      "list_automations",
      "get_automation_library",
      "add_automation",
      "turn_on_automation",
      "turn_off_automation",
      "get_automation_history",
      "share_tender",
      "get_coverage",
      "open_tenda",
      "open_bid_panel",
      "tenda_changes",
      "search_mentions",
      "get_tenda_settings",
      "update_tenda_settings",
      "set_up_tenda",
      "find_company",
      "finish_setup"
    ],
    "declared": {
      "tools": [
        {
          "name": "search_tenders",
          "title": "Search public tenders",
          "description": "Use this to find public sector contracts to bid for in the UK, Canada, the United States, Germany, France and the rest of the EU: open tenders, frameworks and upcoming notices from any public buyer. Searches the user's own countries unless they name one; get_coverage lists every source and when it was last read. Answers give the total; pass nextCursor back as cursor for more. Not for past winners (use search_contract_awards) or jobs. Example: {\"query\":\"school cleaning\",\"region\":\"North West\",\"closing_within_days\":30}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "sort": {
                "enum": [
                  "best",
                  "closing",
                  "newest",
                  "value"
                ],
                "type": "string",
                "description": "\"best\", the default: best fit first for a user with a saved company profile, otherwise the closest match; \"closing\": soonest deadline first; \"newest\": latest published first; \"value\": highest value first."
              },
              "buyer": {
                "type": "string",
                "maxLength": 200,
                "description": "Only tenders from a buyer whose name holds these words, e.g. \"Leeds City Council\" or \"NHS Lothian\"."
              },
              "codes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 20,
                  "minLength": 2
                },
                "maxItems": 20,
                "description": "Only tenders with one of these classification codes, or a code under one: CPV in the UK and EU, e.g. \"90910000\" for cleaning or \"909\" for all cleaning and sanitation; NAICS or PSC on SAM.gov; UNSPSC or GSIN on CanadaBuys."
              },
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "How many to show, up to 50. Defaults to 8."
              },
              "query": {
                "type": "string",
                "description": "What the buyer is buying, in the user's words, e.g. \"grounds maintenance\", \"cyber security consultancy\", \"school catering\". Tenders with the words come first, then any close in meaning that share none of them, marked match \"meaning\". Leave it out to list every tender the other filters allow."
              },
              "stage": {
                "enum": [
                  "open",
                  "upcoming",
                  "any"
                ],
                "type": "string",
                "description": "\"open\" for tenders taking bids now, \"upcoming\" for pipeline and preliminary market engagement notices about future tenders."
              },
              "cursor": {
                "type": "string",
                "maxLength": 400,
                "description": "The nextCursor from an earlier answer, with the same search, for its next page."
              },
              "detail": {
                "enum": [
                  "short",
                  "full"
                ],
                "type": "string",
                "description": "\"short\" for just each result's IDs, title, buyer, value, dates and link, e.g. to go through many pages; \"full\", the default, for everything."
              },
              "region": {
                "enum": [
                  "North East",
                  "North West",
                  "Yorkshire and the Humber",
                  "East Midlands",
                  "West Midlands",
                  "East of England",
                  "London",
                  "South East",
                  "South West",
                  "Scotland",
                  "Wales",
                  "Northern Ireland",
                  "British Columbia",
                  "Alberta",
                  "Saskatchewan",
                  "Manitoba",
                  "Ontario",
                  "Quebec",
                  "New Brunswick",
                  "Nova Scotia",
                  "Prince Edward Island",
                  "Newfoundland and Labrador",
                  "Yukon",
                  "Northwest Territories",
                  "Nunavut",
                  "Alabama",
                  "Alaska",
                  "Arizona",
                  "Arkansas",
                  "California",
                  "Colorado",
                  "Connecticut",
                  "Delaware",
                  "District of Columbia",
                  "Florida",
                  "Georgia",
                  "Hawaii",
                  "Idaho",
                  "Illinois",
                  "Indiana",
                  "Iowa",
                  "Kansas",
                  "Kentucky",
                  "Louisiana",
                  "Maine",
                  "Maryland",
                  "Massachusetts",
                  "Michigan",
                  "Minnesota",
                  "Mississippi",
                  "Missouri",
                  "Montana",
                  "Nebraska",
                  "Nevada",
                  "New Hampshire",
                  "New Jersey",
                  "New Mexico",
                  "New York",
                  "North Carolina",
                  "North Dakota",
                  "Ohio",
                  "Oklahoma",
                  "Oregon",
                  "Pennsylvania",
                  "Rhode Island",
                  "South Carolina",
                  "South Dakota",
                  "Tennessee",
                  "Texas",
                  "Utah",
                  "Vermont",
                  "Virginia",
                  "Washington",
                  "West Virginia",
                  "Wisconsin",
                  "Wyoming",
                  "Puerto Rico",
                  "Guam",
                  "U.S. Virgin Islands",
                  "American Samoa",
                  "Northern Mariana Islands",
                  "Baden-Württemberg",
                  "Bayern",
                  "Berlin",
                  "Brandenburg",
                  "Bremen",
                  "Hamburg",
                  "Hessen",
                  "Mecklenburg-Vorpommern",
                  "Niedersachsen",
                  "Nordrhein-Westfalen",
                  "Rheinland-Pfalz",
                  "Saarland",
                  "Sachsen",
                  "Sachsen-Anhalt",
                  "Schleswig-Holstein",
                  "Thüringen",
                  "Auvergne-Rhône-Alpes",
                  "Bourgogne-Franche-Comté",
                  "Bretagne",
                  "Centre-Val de Loire",
                  "Corse",
                  "Grand Est",
                  "Hauts-de-France",
                  "Île-de-France",
                  "Normandie",
                  "Nouvelle-Aquitaine",
                  "Occitanie",
                  "Pays de la Loire",
                  "Provence-Alpes-Côte d'Azur",
                  "Guadeloupe",
                  "Martinique",
                  "Guyane",
                  "La Réunion",
                  "Mayotte",
                  "Austria",
                  "Belgium",
                  "Bulgaria",
                  "Croatia",
                  "Cyprus",
                  "Czechia",
                  "Denmark",
                  "Estonia",
                  "Finland",
                  "Greece",
                  "Hungary",
                  "Ireland",
                  "Italy",
                  "Latvia",
                  "Lithuania",
                  "Luxembourg",
                  "Malta",
                  "Netherlands",
                  "Poland",
                  "Portugal",
                  "Romania",
                  "Slovakia",
                  "Slovenia",
                  "Spain",
                  "Sweden"
                ],
                "type": "string",
                "description": "Where the work or delivery happens: a UK nation or English region, e.g. \"North West\" for Manchester or Liverpool; a Canadian province or territory, e.g. \"Ontario\" for Toronto; a US state, e.g. \"Virginia\"; a German Land by its German name, e.g. \"Bayern\" for Munich; a French region, e.g. \"Île-de-France\" for Paris; or another EU member state, e.g. \"Poland\". Omit for nationwide contracts or when the user names no place."
              },
              "country": {
                "type": "string",
                "description": "The country to look in, when the user names one, e.g. \"Canada\", \"UK\" or \"Spain\" (an EU member state searches the rest of the EU there). Omit to use the user's own countries (the UK when they aren't signed in). Winquill covers the UK, Canada, the United States, Germany, France and the rest of the EU."
              },
              "procedure": {
                "enum": [
                  "open_procedure",
                  "competitive_flexible",
                  "framework",
                  "dynamic_market",
                  "any"
                ],
                "type": "string",
                "description": "How the buyer is buying, e.g. \"framework\" for framework agreements, \"dynamic_market\" for dynamic markets suppliers can join at any time."
              },
              "buyer_type": {
                "enum": [
                  "central_government",
                  "local_authority",
                  "nhs",
                  "education",
                  "housing",
                  "emergency_services",
                  "devolved_government",
                  "defence",
                  "utilities",
                  "any"
                ],
                "type": "string",
                "description": "Kind of public buyer, e.g. \"local_authority\" for councils, \"nhs\" for NHS trusts and ICBs, \"education\" for schools, academy trusts and universities."
              },
              "suitable_for": {
                "enum": [
                  "sme",
                  "vcse",
                  "any"
                ],
                "type": "string",
                "description": "Only notices the buyer marked as suitable for small and medium-sized enterprises or for voluntary, community and social enterprises."
              },
              "contract_type": {
                "enum": [
                  "goods",
                  "services",
                  "works",
                  "any"
                ],
                "type": "string",
                "description": "What is being bought, e.g. \"works\" for construction and refurbishment."
              },
              "max_value_gbp": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Highest estimated contract value in the country's own currency (pounds for the UK, Canadian dollars for Canada, US dollars for the US, euros for Germany, France and the rest of the EU), e.g. 100000 for \"under £100k\".",
                "exclusiveMinimum": 0
              },
              "min_value_gbp": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Lowest estimated contract value in the country's own currency (pounds for the UK, Canadian dollars for Canada, US dollars for the US, euros for Germany, France and the rest of the EU), e.g. 50000 for \"over £50k\"."
              },
              "published_since": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}",
                "description": "Only tenders published on or after this date, e.g. \"2026-10-01\"."
              },
              "closing_within_days": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only tenders closing within this many days, e.g. 30 for \"this month\".",
                "exclusiveMinimum": 0
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "results",
              "total"
            ],
            "properties": {
              "asOf": {
                "type": "string",
                "description": "Every source searched had read its notices at or after this time, in ISO 8601."
              },
              "note": {
                "type": "string"
              },
              "total": {
                "type": "number",
                "description": "How many tenders match in all, across every page."
              },
              "credit": {
                "type": "string"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "ocid",
                    "reference",
                    "title",
                    "buyer"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "fit": {
                      "type": "object",
                      "required": [
                        "score",
                        "band",
                        "headline"
                      ],
                      "properties": {
                        "band": {
                          "type": "string"
                        },
                        "score": {
                          "type": "number"
                        },
                        "headline": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "url": {
                      "type": "string"
                    },
                    "ocid": {
                      "type": "string"
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "codes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "match": {
                      "enum": [
                        "partial",
                        "meaning"
                      ],
                      "type": "string",
                      "description": "\"partial\": matches part of the search; \"meaning\": none of its words, but close to it in meaning."
                    },
                    "stage": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "alsoOn": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "closes": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "portal": {
                      "type": "object",
                      "required": [
                        "name",
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "register": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "source": {
                      "type": "string"
                    },
                    "buyerId": {
                      "type": "string"
                    },
                    "regions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "closesAt": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "daysLeft": {
                      "type": "number"
                    },
                    "timeZone": {
                      "type": "string"
                    },
                    "buyerType": {
                      "type": "string"
                    },
                    "procedure": {
                      "type": "string"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "submitVia": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "publishedAt": {
                      "type": "string"
                    },
                    "valueAmount": {
                      "type": "number"
                    },
                    "valuePerYear": {
                      "type": "string"
                    },
                    "suitableForSme": {
                      "type": "boolean"
                    },
                    "suitableForVcse": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "countries": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "nextCursor": {
                "type": "string",
                "description": "Pass it back as cursor, with the same search, for the next page. Absent on the last page."
              },
              "interpretedAs": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_tender_details",
          "title": "Explain a tender",
          "description": "Use this when the user asks about one tender, framework or standing offer, by notice ID, buyer reference or from earlier results: the deadline, the portal to submit through, lots, value, conditions, award criteria and what the buyer wants, in plain English. It also reads the competition: who holds the work now, what the buyer paid before, how many bids it drew, and whether the tender is worth chasing. Not for finding tenders (use search_tenders). Example: {\"tender_reference\":\"012345-2026\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference"
            ],
            "properties": {
              "more_references": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 3,
                  "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
                },
                "maxItems": 19,
                "description": "More tenders to read in the same call, by the same kind of reference, e.g. to compare a shortlist: up to 19, for 20 in all. Saves a call for each."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "found"
            ],
            "properties": {
              "lots": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "suitableForSme": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "buyer": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "contact": {
                    "type": "string"
                  },
                  "locality": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "codes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "found": {
                "type": "boolean"
              },
              "rules": {
                "type": "string"
              },
              "awards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "ends": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "suppliers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "credit": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "required": [
                  "id",
                  "ocid",
                  "reference",
                  "title",
                  "buyer"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "ocid": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  },
                  "valueAmount": {
                    "type": "number"
                  }
                },
                "description": "The same facts as a search_tenders result.",
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "tenders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "summary",
                    "found"
                  ],
                  "properties": {
                    "lots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "suitableForSme": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": {}
                      }
                    },
                    "buyer": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "contact": {
                          "type": "string"
                        },
                        "locality": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "codes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "found": {
                      "type": "boolean"
                    },
                    "rules": {
                      "type": "string"
                    },
                    "awards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string"
                          },
                          "ends": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "suppliers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "additionalProperties": {}
                      }
                    },
                    "credit": {
                      "type": "string"
                    },
                    "tender": {
                      "type": "object",
                      "required": [
                        "id",
                        "ocid",
                        "reference",
                        "title",
                        "buyer"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "ocid": {
                          "type": "string"
                        },
                        "buyer": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "closesAt": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "reference": {
                          "type": "string"
                        },
                        "valueAmount": {
                          "type": "number"
                        }
                      },
                      "description": "The same facts as a search_tenders result.",
                      "additionalProperties": {}
                    },
                    "summary": {
                      "type": "string"
                    },
                    "keyDates": {
                      "type": "object",
                      "properties": {
                        "bidsClose": {
                          "type": "string"
                        },
                        "contractEnds": {
                          "type": "string"
                        },
                        "contractStarts": {
                          "type": "string"
                        },
                        "clarificationsClose": {
                          "type": "string"
                        },
                        "latestEndWithExtensions": {
                          "type": "string"
                        },
                        "expressionsOfInterestClose": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "conditions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "words": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "mandatory": {
                            "type": "boolean"
                          },
                          "requirement": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": {}
                      }
                    },
                    "howItIsRun": {
                      "type": "string"
                    },
                    "competition": {
                      "type": "object",
                      "required": [
                        "read",
                        "why",
                        "history"
                      ],
                      "properties": {
                        "why": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The facts behind the read, in plain words."
                        },
                        "read": {
                          "enum": [
                            "worth chasing",
                            "open contest",
                            "long shot"
                          ],
                          "type": "string",
                          "description": "Winquill's read of the competition, from the rules in why: never odds."
                        },
                        "holder": {
                          "type": "object",
                          "required": [
                            "name",
                            "since"
                          ],
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "since": {
                              "type": "string"
                            },
                            "contractEnds": {
                              "type": "string"
                            },
                            "companyNumber": {
                              "type": "string"
                            }
                          },
                          "description": "Who holds the work now: the winner of the buyer's latest similar contract that hasn't ended, or ended within the last 12 months. Dates in ISO 8601.",
                          "additionalProperties": {}
                        },
                        "history": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "tenderId",
                              "title",
                              "reference",
                              "awardedAt",
                              "suppliers"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "value": {
                                "type": "object",
                                "required": [
                                  "amount",
                                  "currency"
                                ],
                                "properties": {
                                  "amount": {
                                    "type": "number"
                                  },
                                  "currency": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": {}
                              },
                              "tenderId": {
                                "type": "string"
                              },
                              "awardedAt": {
                                "type": "string"
                              },
                              "reference": {
                                "type": "string"
                              },
                              "suppliers": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "companyNumber": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": {}
                                }
                              },
                              "contractEnd": {
                                "type": "string"
                              },
                              "bidsReceived": {
                                "type": "number"
                              },
                              "valuePerYear": {
                                "type": "number"
                              },
                              "contractStart": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": {}
                          },
                          "description": "The buyer's similar past contracts the read is from, newest first."
                        },
                        "valueRange": {
                          "type": "object",
                          "required": [
                            "low",
                            "high",
                            "currency",
                            "contracts"
                          ],
                          "properties": {
                            "low": {
                              "type": "number"
                            },
                            "high": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "contracts": {
                              "type": "number"
                            }
                          },
                          "description": "What similar contracts were worth a year, lowest and highest, in one currency.",
                          "additionalProperties": {}
                        },
                        "bidsReceived": {
                          "type": "object",
                          "required": [
                            "typical",
                            "notices"
                          ],
                          "properties": {
                            "notices": {
                              "type": "number"
                            },
                            "typical": {
                              "type": "number"
                            }
                          },
                          "description": "How many bids similar contracts drew: the median, and how many notices gave a count.",
                          "additionalProperties": {}
                        }
                      },
                      "additionalProperties": {}
                    },
                    "whatTheyWant": {
                      "type": "string"
                    },
                    "howItIsScored": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "notInTheNotice": {
                      "type": "string"
                    },
                    "publishedDocuments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": {}
                      }
                    }
                  },
                  "additionalProperties": {}
                },
                "description": "With more_references: each tender's own answer, in the order asked."
              },
              "keyDates": {
                "type": "object",
                "properties": {
                  "bidsClose": {
                    "type": "string"
                  },
                  "contractEnds": {
                    "type": "string"
                  },
                  "contractStarts": {
                    "type": "string"
                  },
                  "clarificationsClose": {
                    "type": "string"
                  },
                  "latestEndWithExtensions": {
                    "type": "string"
                  },
                  "expressionsOfInterestClose": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "notFound": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The references asked for that Winquill has no notice for."
              },
              "conditions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "words": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "mandatory": {
                      "type": "boolean"
                    },
                    "requirement": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "howItIsRun": {
                "type": "string"
              },
              "competition": {
                "type": "object",
                "required": [
                  "read",
                  "why",
                  "history"
                ],
                "properties": {
                  "why": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The facts behind the read, in plain words."
                  },
                  "read": {
                    "enum": [
                      "worth chasing",
                      "open contest",
                      "long shot"
                    ],
                    "type": "string",
                    "description": "Winquill's read of the competition, from the rules in why: never odds."
                  },
                  "holder": {
                    "type": "object",
                    "required": [
                      "name",
                      "since"
                    ],
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "since": {
                        "type": "string"
                      },
                      "contractEnds": {
                        "type": "string"
                      },
                      "companyNumber": {
                        "type": "string"
                      }
                    },
                    "description": "Who holds the work now: the winner of the buyer's latest similar contract that hasn't ended, or ended within the last 12 months. Dates in ISO 8601.",
                    "additionalProperties": {}
                  },
                  "history": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "tenderId",
                        "title",
                        "reference",
                        "awardedAt",
                        "suppliers"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "value": {
                          "type": "object",
                          "required": [
                            "amount",
                            "currency"
                          ],
                          "properties": {
                            "amount": {
                              "type": "number"
                            },
                            "currency": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": {}
                        },
                        "tenderId": {
                          "type": "string"
                        },
                        "awardedAt": {
                          "type": "string"
                        },
                        "reference": {
                          "type": "string"
                        },
                        "suppliers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "companyNumber": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": {}
                          }
                        },
                        "contractEnd": {
                          "type": "string"
                        },
                        "bidsReceived": {
                          "type": "number"
                        },
                        "valuePerYear": {
                          "type": "number"
                        },
                        "contractStart": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "The buyer's similar past contracts the read is from, newest first."
                  },
                  "valueRange": {
                    "type": "object",
                    "required": [
                      "low",
                      "high",
                      "currency",
                      "contracts"
                    ],
                    "properties": {
                      "low": {
                        "type": "number"
                      },
                      "high": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "contracts": {
                        "type": "number"
                      }
                    },
                    "description": "What similar contracts were worth a year, lowest and highest, in one currency.",
                    "additionalProperties": {}
                  },
                  "bidsReceived": {
                    "type": "object",
                    "required": [
                      "typical",
                      "notices"
                    ],
                    "properties": {
                      "notices": {
                        "type": "number"
                      },
                      "typical": {
                        "type": "number"
                      }
                    },
                    "description": "How many bids similar contracts drew: the median, and how many notices gave a count.",
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "whatTheyWant": {
                "type": "string"
              },
              "howItIsScored": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notInTheNotice": {
                "type": "string"
              },
              "publishedDocuments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "search_contract_awards",
          "title": "Search past awards and re-tenders",
          "description": "Use this to find who won public contracts in the UK, Canada, the United States, Germany, France and the rest of the EU, what a buyer paid last time, and which contracts end soon and may be re-tendered. Searches the user's own countries unless they name one. Answers give the total, pass nextCursor back as cursor for more, and summarise says who won most across every match. Not for tenders open now (use search_tenders) or a public body's total spending. Example: {\"buyer\":\"Leeds City Council\",\"query\":\"cleaning\",\"summarise\":\"supplier\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "buyer": {
                "type": "string",
                "description": "Public body that awarded the contract, e.g. \"Leeds City Council\"."
              },
              "codes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 20,
                  "minLength": 2
                },
                "maxItems": 20,
                "description": "Only contracts with one of these classification codes, or a code under one: CPV in the UK and EU, e.g. \"90910000\" for cleaning or \"909\" for all cleaning and sanitation; NAICS or PSC on SAM.gov; UNSPSC or GSIN on CanadaBuys."
              },
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "How many to show, up to 50. Defaults to 10."
              },
              "query": {
                "type": "string",
                "description": "What the contract covers, e.g. \"IT support\" or \"school cleaning\"."
              },
              "cursor": {
                "type": "string",
                "maxLength": 400,
                "description": "The nextCursor from an earlier answer, with the same search, for its next page."
              },
              "detail": {
                "enum": [
                  "short",
                  "full"
                ],
                "type": "string",
                "description": "\"short\" for just each result's IDs, title, buyer, value, dates and link, e.g. to go through many pages; \"full\", the default, for everything."
              },
              "region": {
                "enum": [
                  "North East",
                  "North West",
                  "Yorkshire and the Humber",
                  "East Midlands",
                  "West Midlands",
                  "East of England",
                  "London",
                  "South East",
                  "South West",
                  "Scotland",
                  "Wales",
                  "Northern Ireland",
                  "British Columbia",
                  "Alberta",
                  "Saskatchewan",
                  "Manitoba",
                  "Ontario",
                  "Quebec",
                  "New Brunswick",
                  "Nova Scotia",
                  "Prince Edward Island",
                  "Newfoundland and Labrador",
                  "Yukon",
                  "Northwest Territories",
                  "Nunavut",
                  "Alabama",
                  "Alaska",
                  "Arizona",
                  "Arkansas",
                  "California",
                  "Colorado",
                  "Connecticut",
                  "Delaware",
                  "District of Columbia",
                  "Florida",
                  "Georgia",
                  "Hawaii",
                  "Idaho",
                  "Illinois",
                  "Indiana",
                  "Iowa",
                  "Kansas",
                  "Kentucky",
                  "Louisiana",
                  "Maine",
                  "Maryland",
                  "Massachusetts",
                  "Michigan",
                  "Minnesota",
                  "Mississippi",
                  "Missouri",
                  "Montana",
                  "Nebraska",
                  "Nevada",
                  "New Hampshire",
                  "New Jersey",
                  "New Mexico",
                  "New York",
                  "North Carolina",
                  "North Dakota",
                  "Ohio",
                  "Oklahoma",
                  "Oregon",
                  "Pennsylvania",
                  "Rhode Island",
                  "South Carolina",
                  "South Dakota",
                  "Tennessee",
                  "Texas",
                  "Utah",
                  "Vermont",
                  "Virginia",
                  "Washington",
                  "West Virginia",
                  "Wisconsin",
                  "Wyoming",
                  "Puerto Rico",
                  "Guam",
                  "U.S. Virgin Islands",
                  "American Samoa",
                  "Northern Mariana Islands",
                  "Baden-Württemberg",
                  "Bayern",
                  "Berlin",
                  "Brandenburg",
                  "Bremen",
                  "Hamburg",
                  "Hessen",
                  "Mecklenburg-Vorpommern",
                  "Niedersachsen",
                  "Nordrhein-Westfalen",
                  "Rheinland-Pfalz",
                  "Saarland",
                  "Sachsen",
                  "Sachsen-Anhalt",
                  "Schleswig-Holstein",
                  "Thüringen",
                  "Auvergne-Rhône-Alpes",
                  "Bourgogne-Franche-Comté",
                  "Bretagne",
                  "Centre-Val de Loire",
                  "Corse",
                  "Grand Est",
                  "Hauts-de-France",
                  "Île-de-France",
                  "Normandie",
                  "Nouvelle-Aquitaine",
                  "Occitanie",
                  "Pays de la Loire",
                  "Provence-Alpes-Côte d'Azur",
                  "Guadeloupe",
                  "Martinique",
                  "Guyane",
                  "La Réunion",
                  "Mayotte",
                  "Austria",
                  "Belgium",
                  "Bulgaria",
                  "Croatia",
                  "Cyprus",
                  "Czechia",
                  "Denmark",
                  "Estonia",
                  "Finland",
                  "Greece",
                  "Hungary",
                  "Ireland",
                  "Italy",
                  "Latvia",
                  "Lithuania",
                  "Luxembourg",
                  "Malta",
                  "Netherlands",
                  "Poland",
                  "Portugal",
                  "Romania",
                  "Slovakia",
                  "Slovenia",
                  "Spain",
                  "Sweden"
                ],
                "type": "string",
                "description": "Where the work or delivery happens: a UK nation or English region, e.g. \"North West\" for Manchester or Liverpool; a Canadian province or territory, e.g. \"Ontario\" for Toronto; a US state, e.g. \"Virginia\"; a German Land by its German name, e.g. \"Bayern\" for Munich; a French region, e.g. \"Île-de-France\" for Paris; or another EU member state, e.g. \"Poland\". Omit for nationwide contracts or when the user names no place."
              },
              "country": {
                "type": "string",
                "description": "The country to look in, when the user names one, e.g. \"Canada\", \"UK\" or \"Spain\" (an EU member state searches the rest of the EU there). Omit to use the user's own countries (the UK when they aren't signed in). Winquill covers the UK, Canada, the United States, Germany, France and the rest of the EU."
              },
              "supplier": {
                "type": "string",
                "description": "Company that holds or won the contract, e.g. a competitor's name."
              },
              "summarise": {
                "enum": [
                  "buyer",
                  "supplier"
                ],
                "type": "string",
                "description": "Adds overview, a summary of every matching award, not just this page: \"buyer\" for who wins a buyer's contracts, \"supplier\" for what a supplier wins and from which buyers."
              },
              "awarded_since": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}",
                "description": "Only contracts awarded on or after this date, e.g. \"2026-01-01\"."
              },
              "ending_within_months": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Only contracts ending within this many months, e.g. 12 for \"coming up for renewal next year\".",
                "exclusiveMinimum": 0
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "results",
              "total"
            ],
            "properties": {
              "total": {
                "type": "number",
                "description": "How many awards match in all, across every page."
              },
              "credit": {
                "type": "string"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "ocid",
                    "reference",
                    "title",
                    "buyer"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "ends": {
                      "type": "string"
                    },
                    "ocid": {
                      "type": "string"
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "codes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "endsAt": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "awarded": {
                      "type": "string"
                    },
                    "buyerId": {
                      "type": "string"
                    },
                    "winners": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "companyNumber": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": {}
                      }
                    },
                    "currency": {
                      "type": "string"
                    },
                    "awardedAt": {
                      "type": "string"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "suppliers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "valueAmount": {
                      "type": "number"
                    },
                    "retenderLikely": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "overview": {
                "type": "object",
                "required": [
                  "by",
                  "contracts",
                  "value",
                  "topWinners"
                ],
                "properties": {
                  "by": {
                    "enum": [
                      "buyer",
                      "supplier"
                    ],
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "value": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "amount",
                        "currency"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "What they were awarded for, a total for each currency."
                  },
                  "contracts": {
                    "type": "number",
                    "description": "How many awarded notices it covers."
                  },
                  "topBuyers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "contracts",
                        "share"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "share": {
                          "type": "number"
                        },
                        "contracts": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "topWinners": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "contracts",
                        "share"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "share": {
                          "type": "number",
                          "description": "The share of the contracts it won, from 0 to 1."
                        },
                        "contracts": {
                          "type": "number"
                        },
                        "companyNumber": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    }
                  }
                },
                "description": "With summarise: a summary of every matching award, not just this page.",
                "additionalProperties": {}
              },
              "countries": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "nextCursor": {
                "type": "string",
                "description": "Pass it back as cursor, with the same search, for the next page. Absent on the last page."
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "assess_tender_fit",
          "title": "Assess bid fit",
          "description": "Use this when the user asks whether their business should bid for a public contract, or which open tenders suit them best. Compares the tender's conditions of participation (turnover, insurance levels, experience and certifications), location and lot sizes with the company's profile, and returns a fit score with reasons, likely disqualifiers and gaps. Omit tender_reference to rank the open tenders that suit the company. It does not predict or guarantee an award. Do not use for general business strategy or for private-sector sales leads.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "query": {
                "type": "string",
                "description": "When ranking without a tender_reference: the kind of work to look for, e.g. \"NHS cleaning\"."
              },
              "country": {
                "type": "string",
                "description": "The country to look in, when the user names one, e.g. \"Canada\", \"UK\" or \"Spain\" (an EU member state searches the rest of the EU there). Omit to use the user's own countries (the UK when they aren't signed in). Winquill covers the UK, Canada, the United States, Germany, France and the rest of the EU."
              },
              "business_size": {
                "enum": [
                  "micro",
                  "small",
                  "medium",
                  "large",
                  "vcse"
                ],
                "type": "string",
                "description": "The company's size, e.g. \"small\" for under 50 staff. Use \"vcse\" for charities and social enterprises."
              },
              "company_summary": {
                "type": "string",
                "description": "What the company does, its size, turnover, certifications, insurance, where it works and past contracts, in the user's words, e.g. \"6-person electrical contractor in Leeds, £800k turnover, CHAS and Cyber Essentials\". Optional when the user has a saved Winquill profile."
              },
              "more_references": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 3,
                  "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
                },
                "maxItems": 19,
                "description": "More tenders to judge in the same call, by the same kind of reference, e.g. to compare a shortlist: up to 19, for 20 in all. Saves a call for each."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "fit": {
                "type": "object",
                "required": [
                  "score",
                  "band",
                  "headline"
                ],
                "properties": {
                  "band": {
                    "enum": [
                      "strong",
                      "possible",
                      "weak",
                      "not_eligible"
                    ],
                    "type": "string"
                  },
                  "gaps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "risks": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "score": {
                    "type": "number"
                  },
                  "signals": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "detail": {
                          "type": "string"
                        },
                        "effect": {
                          "type": "string"
                        },
                        "factor": {
                          "type": "string"
                        },
                        "points": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "headline": {
                    "type": "string"
                  },
                  "toConfirm": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "confidence": {
                    "type": "string"
                  },
                  "disqualifiers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": {}
              },
              "found": {
                "type": "boolean"
              },
              "caveat": {
                "type": "string"
              },
              "credit": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "required": [
                  "id",
                  "ocid",
                  "reference",
                  "title",
                  "buyer"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "ocid": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  },
                  "valueAmount": {
                    "type": "number"
                  }
                },
                "description": "The same facts as a search_tenders result.",
                "additionalProperties": {}
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "ocid",
                    "reference",
                    "title",
                    "buyer"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "fit": {
                      "type": "object",
                      "required": [
                        "score",
                        "band",
                        "headline"
                      ],
                      "properties": {
                        "band": {
                          "type": "string"
                        },
                        "score": {
                          "type": "number"
                        },
                        "headline": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "url": {
                      "type": "string"
                    },
                    "why": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ocid": {
                      "type": "string"
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "closesAt": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "watchOut": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "reference": {
                      "type": "string"
                    },
                    "valueAmount": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "notFound": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The references asked for that Winquill has no notice for."
              },
              "profileUsed": {
                "type": "object",
                "properties": {
                  "size": {
                    "type": "string"
                  },
                  "work": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "holds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "regions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "turnover": {
                    "type": "string"
                  },
                  "employees": {
                    "type": "number"
                  },
                  "careRating": {
                    "type": "string"
                  },
                  "projectsUpTo": {
                    "type": "string"
                  },
                  "careHoursPerWeek": {
                    "type": "number"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "check_bid_readiness",
          "title": "Check bid documents",
          "description": "Use this when the user wants to know what they're missing before bidding, for one tender or in general: registrations, certifications, insurance, policies and each country's own documents, such as Cyber Essentials in the UK, SAM.gov registration in the US or the DUME in France. A general check follows the user's home country. Returns what is held, missing or expiring. It gives readiness guidance, not legal advice. Not for Companies House look-ups or tax questions. Example: {\"tender_reference\":\"003344-2026\",\"documents_held\":[\"cyber_essentials\",\"iso_9001\"]}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "sector": {
                "enum": [
                  "construction",
                  "facilities",
                  "it_digital",
                  "health_social_care",
                  "professional_services",
                  "goods_supply",
                  "transport",
                  "other"
                ],
                "type": "string",
                "description": "The kind of work the company bids for, e.g. \"construction\", which changes the accreditations buyers expect."
              },
              "country": {
                "type": "string",
                "description": "The country whose rules to check against, when the user names one, e.g. \"Canada\", \"UK\" or \"Spain\". Omit to use the user's home country. Each country has its own registrations, certificates and declarations, e.g. Central Digital Platform registration in the UK, the EEE in Germany or the Kbis in France."
              },
              "documents_held": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Documents and certifications the user says they already have, e.g. [\"cyber_essentials\", \"public_liability_insurance\", \"iso_9001\"]. Add an expiry as \"cyber_essentials:2026-11-30\"."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "Optional tender to check against, e.g. \"003344-2026\". Omit for a general readiness check."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "found": {
                "type": "boolean"
              },
              "caveat": {
                "type": "string"
              },
              "credit": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "required": [
                  "id",
                  "ocid",
                  "reference",
                  "title",
                  "buyer"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "ocid": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  },
                  "valueAmount": {
                    "type": "number"
                  }
                },
                "description": "The same facts as a search_tenders result.",
                "additionalProperties": {}
              },
              "covered": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "checklist": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "item": {
                      "type": "string"
                    },
                    "basis": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "held",
                        "missing",
                        "expiring"
                      ],
                      "type": "string"
                    },
                    "expires": {
                      "type": "string"
                    },
                    "howToGet": {
                      "type": "string"
                    },
                    "importance": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "nextSteps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "draft_bid_response",
          "title": "Draft a bid answer",
          "description": "Use this when the user wants help writing part of a response to a public tender: a quality question answer, social value response, method statement, case study, company overview, cover letter or clarification question. Returns a drafting brief built from the tender's award criteria, word limits and the user's facts, so the draft answers what evaluators will score. Write the draft from the brief. Do not use for job applications, grant applications or private-sector sales proposals.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "section"
            ],
            "properties": {
              "notes": {
                "type": "string",
                "description": "Facts the draft should use, e.g. \"we cut response times by 30% for Bristol City Council in 2025\"."
              },
              "section": {
                "enum": [
                  "quality_answer",
                  "social_value",
                  "method_statement",
                  "case_study",
                  "company_overview",
                  "cover_letter",
                  "clarification_question"
                ],
                "type": "string",
                "description": "Which part of the bid to draft, e.g. \"social_value\"."
              },
              "question": {
                "type": "string",
                "description": "The buyer's question, word for word, when the user has it."
              },
              "word_limit": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The buyer's word limit for this answer, e.g. 500.",
                "exclusiveMinimum": 0
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The tender being answered, e.g. \"005566-2026\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "team": {
                "type": "object",
                "properties": {
                  "facts": {
                    "type": "string"
                  },
                  "workspace": {
                    "type": "string"
                  },
                  "winningBids": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "lessons": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    }
                  }
                },
                "additionalProperties": {}
              },
              "brief": {
                "type": "object",
                "properties": {
                  "task": {
                    "type": "string"
                  },
                  "avoid": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "outline": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "cover": {
                          "type": "string"
                        },
                        "words": {
                          "type": "number"
                        },
                        "heading": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "scoring": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "section": {
                    "type": "string"
                  },
                  "audience": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "wordLimit": {
                    "type": "number"
                  },
                  "mustAddress": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "writingRules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "evidenceToUse": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "evidenceToAskFor": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": {}
              },
              "found": {
                "type": "boolean"
              },
              "credit": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "review_bid_draft",
          "title": "Check a bid answer before submitting",
          "description": "Use this when the user has a draft answer for a public tender and wants it checked before submission, the way an evaluator would: word limit, every part of the question answered, specific evidence, firm commitments, no unfinished placeholders or empty superlatives, and what the section type needs (mobilisation, KPIs, measurable social value). Returns checks plus the tender's scoring criteria and a 0 to 5 rubric to score it against. Do not use to write a new answer (use draft_bid_response).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "draft",
              "section"
            ],
            "properties": {
              "draft": {
                "type": "string",
                "minLength": 20,
                "description": "The draft answer text."
              },
              "section": {
                "enum": [
                  "quality_answer",
                  "social_value",
                  "method_statement",
                  "case_study",
                  "company_overview",
                  "cover_letter",
                  "clarification_question"
                ],
                "type": "string",
                "description": "What the draft is, e.g. \"method_statement\"."
              },
              "question": {
                "type": "string",
                "description": "The buyer's question, word for word, so Winquill can check every part is answered."
              },
              "word_limit": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The buyer's word limit for this answer.",
                "exclusiveMinimum": 0
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "found": {
                "type": "boolean"
              },
              "credit": {
                "type": "string"
              },
              "review": {
                "type": "object",
                "required": [
                  "words"
                ],
                "properties": {
                  "words": {
                    "type": "number"
                  },
                  "checks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "check": {
                          "type": "string"
                        },
                        "detail": {
                          "type": "string"
                        },
                        "result": {
                          "enum": [
                            "pass",
                            "warn",
                            "fail"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "rubric": {
                    "type": "object",
                    "properties": {
                      "scale": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "criteria": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "instruction": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  },
                  "mustFix": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "wordLimit": {
                    "type": "number"
                  }
                },
                "additionalProperties": {}
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "watch_tenders",
          "title": "Watch for tenders",
          "description": "Use this when the user wants alerts for new tenders or upcoming notices that match a search, or for changes to one tender they follow (clarifications, new deadlines, the award). Saves a watch and gives its watchId: matches show in get_tender_updates and, with notify, in the workspace's Slack or Teams channels that get changes. Needs a Winquill account. Not for seeing the user's watches (use list_watches) or stopping one (use stop_watch). Example: {\"query\":\"office cleaning\",\"include_upcoming\":true}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "query": {
                "type": "string",
                "description": "What to watch for, e.g. \"office cleaning\"."
              },
              "notify": {
                "type": "array",
                "items": {
                  "enum": [
                    "slack",
                    "teams"
                  ],
                  "type": "string"
                },
                "maxItems": 2,
                "description": "Also post what the watch finds to the user's workspace's Slack or Teams channels, where they get changes. Only when the user asks for it there."
              },
              "region": {
                "enum": [
                  "North East",
                  "North West",
                  "Yorkshire and the Humber",
                  "East Midlands",
                  "West Midlands",
                  "East of England",
                  "London",
                  "South East",
                  "South West",
                  "Scotland",
                  "Wales",
                  "Northern Ireland",
                  "British Columbia",
                  "Alberta",
                  "Saskatchewan",
                  "Manitoba",
                  "Ontario",
                  "Quebec",
                  "New Brunswick",
                  "Nova Scotia",
                  "Prince Edward Island",
                  "Newfoundland and Labrador",
                  "Yukon",
                  "Northwest Territories",
                  "Nunavut",
                  "Alabama",
                  "Alaska",
                  "Arizona",
                  "Arkansas",
                  "California",
                  "Colorado",
                  "Connecticut",
                  "Delaware",
                  "District of Columbia",
                  "Florida",
                  "Georgia",
                  "Hawaii",
                  "Idaho",
                  "Illinois",
                  "Indiana",
                  "Iowa",
                  "Kansas",
                  "Kentucky",
                  "Louisiana",
                  "Maine",
                  "Maryland",
                  "Massachusetts",
                  "Michigan",
                  "Minnesota",
                  "Mississippi",
                  "Missouri",
                  "Montana",
                  "Nebraska",
                  "Nevada",
                  "New Hampshire",
                  "New Jersey",
                  "New Mexico",
                  "New York",
                  "North Carolina",
                  "North Dakota",
                  "Ohio",
                  "Oklahoma",
                  "Oregon",
                  "Pennsylvania",
                  "Rhode Island",
                  "South Carolina",
                  "South Dakota",
                  "Tennessee",
                  "Texas",
                  "Utah",
                  "Vermont",
                  "Virginia",
                  "Washington",
                  "West Virginia",
                  "Wisconsin",
                  "Wyoming",
                  "Puerto Rico",
                  "Guam",
                  "U.S. Virgin Islands",
                  "American Samoa",
                  "Northern Mariana Islands",
                  "Baden-Württemberg",
                  "Bayern",
                  "Berlin",
                  "Brandenburg",
                  "Bremen",
                  "Hamburg",
                  "Hessen",
                  "Mecklenburg-Vorpommern",
                  "Niedersachsen",
                  "Nordrhein-Westfalen",
                  "Rheinland-Pfalz",
                  "Saarland",
                  "Sachsen",
                  "Sachsen-Anhalt",
                  "Schleswig-Holstein",
                  "Thüringen",
                  "Auvergne-Rhône-Alpes",
                  "Bourgogne-Franche-Comté",
                  "Bretagne",
                  "Centre-Val de Loire",
                  "Corse",
                  "Grand Est",
                  "Hauts-de-France",
                  "Île-de-France",
                  "Normandie",
                  "Nouvelle-Aquitaine",
                  "Occitanie",
                  "Pays de la Loire",
                  "Provence-Alpes-Côte d'Azur",
                  "Guadeloupe",
                  "Martinique",
                  "Guyane",
                  "La Réunion",
                  "Mayotte",
                  "Austria",
                  "Belgium",
                  "Bulgaria",
                  "Croatia",
                  "Cyprus",
                  "Czechia",
                  "Denmark",
                  "Estonia",
                  "Finland",
                  "Greece",
                  "Hungary",
                  "Ireland",
                  "Italy",
                  "Latvia",
                  "Lithuania",
                  "Luxembourg",
                  "Malta",
                  "Netherlands",
                  "Poland",
                  "Portugal",
                  "Romania",
                  "Slovakia",
                  "Slovenia",
                  "Spain",
                  "Sweden"
                ],
                "type": "string",
                "description": "Where the work or delivery happens: a UK nation or English region, e.g. \"North West\" for Manchester or Liverpool; a Canadian province or territory, e.g. \"Ontario\" for Toronto; a US state, e.g. \"Virginia\"; a German Land by its German name, e.g. \"Bayern\" for Munich; a French region, e.g. \"Île-de-France\" for Paris; or another EU member state, e.g. \"Poland\". Omit for nationwide contracts or when the user names no place."
              },
              "country": {
                "type": "string",
                "description": "The country to look in, when the user names one, e.g. \"Canada\", \"UK\" or \"Spain\" (an EU member state searches the rest of the EU there). Omit to use the user's own countries (the UK when they aren't signed in). Winquill covers the UK, Canada, the United States, Germany, France and the rest of the EU."
              },
              "buyer_type": {
                "enum": [
                  "central_government",
                  "local_authority",
                  "nhs",
                  "education",
                  "housing",
                  "emergency_services",
                  "devolved_government",
                  "defence",
                  "utilities",
                  "any"
                ],
                "type": "string",
                "description": "Kind of public buyer, e.g. \"local_authority\" for councils, \"nhs\" for NHS trusts and ICBs, \"education\" for schools, academy trusts and universities."
              },
              "include_upcoming": {
                "type": "boolean",
                "description": "Also alert on pipeline and preliminary market engagement notices, to hear about work before it is tendered."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "Watch one tender for clarifications, deadline changes and the award instead of a search, e.g. \"012345-2026\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "found": {
                "type": "boolean"
              },
              "credit": {
                "type": "string"
              },
              "notify": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "created": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "watchId": {
                "type": "string"
              },
              "channels": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "app": {
                      "type": "string"
                    },
                    "alerts": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "channel": {
                      "type": "string"
                    },
                    "getsMatches": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "workspace": {
                "type": "string"
              },
              "alreadyOpen": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "ocid",
                    "reference",
                    "title",
                    "buyer"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "ocid": {
                      "type": "string"
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "closesAt": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "valueAmount": {
                      "type": "number"
                    }
                  },
                  "description": "The same facts as a search_tenders result.",
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_watches",
          "title": "List my watches",
          "description": "Use this when the user asks which Winquill watches they have, or to find the one to stop: each watch with its ID, what it watches for, its countries and whether it posts to Slack or Teams. Needs a Winquill account. Do not use for what the watches found (use get_tender_updates). Example: {}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "watches"
            ],
            "properties": {
              "summary": {
                "type": "string"
              },
              "watches": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "about",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "about": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string"
                    },
                    "notify": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tender": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "buyer": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "reference": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "regions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "countries": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "buyerTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "includeUpcoming": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "stop_watch",
          "title": "Stop a watch",
          "description": "Use this when the user wants to stop one of their Winquill watches, by the watchId that watch_tenders or list_watches gave. It finds nothing new after that; what it already found still shows in get_tender_updates. Needs a Winquill account. Example: {\"watch_id\":\"wch_abc123\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "watch_id"
            ],
            "properties": {
              "watch_id": {
                "type": "string",
                "maxLength": 100,
                "description": "The watch to stop, by the id watch_tenders or list_watches gave."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "stopped"
            ],
            "properties": {
              "stopped": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "watchId": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_tender_updates",
          "title": "Get tender alerts",
          "description": "Use this when the user asks what's new from their Winquill watches: new matching tenders, pipeline notices, deadline changes, clarifications, cancellations and awards. Without since, it gives the updates not shown before and marks them seen. Agents that check on a schedule pass since, the nextSince from the answer before: it reads what was recorded after it, oldest first, and marks nothing. watch_id keeps to one watch. Needs a Winquill account. Not for searching (use search_tenders). Example: {\"since\":\"eyJzZXEiOjQyfQ\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "since": {
                "type": "string",
                "maxLength": 400,
                "description": "The nextSince from an earlier answer, for the updates recorded after it. Leave it out for the updates not yet shown, which are then marked seen."
              },
              "watch_id": {
                "type": "string",
                "maxLength": 100,
                "description": "Only this watch's updates, by the id watch_tenders gave."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "updates"
            ],
            "properties": {
              "more": {
                "type": "boolean"
              },
              "credit": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "updates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "kind",
                    "summary"
                  ],
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "tender": {
                      "type": "object",
                      "required": [
                        "id",
                        "ocid",
                        "reference",
                        "title",
                        "buyer"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "ocid": {
                          "type": "string"
                        },
                        "buyer": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "closesAt": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "reference": {
                          "type": "string"
                        },
                        "valueAmount": {
                          "type": "number"
                        }
                      },
                      "description": "The same facts as a search_tenders result.",
                      "additionalProperties": {}
                    },
                    "summary": {
                      "type": "string"
                    },
                    "watchId": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "nextSince": {
                "type": "string",
                "description": "Pass it back as since for the updates recorded after these. Reading with since marks nothing as seen, so it can be read again."
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_tender_documents",
          "title": "Read tender documents",
          "description": "Use this when the user shares text from a tender's documents, or wants Winquill to read the files the buyer published with the notice (read_published, signed in). Returns a checklist of everything the bid must include, each with its file, page and the buyer's own words, and the requirements the notice leaves out, such as turnover, insurance and certifications. When the workspace can use Winquill's AI, it also returns the questions the buyer scores and how they're marked. Not for documents unrelated to a tender. Example: {\"tender_reference\":\"012345-2026\",\"read_published\":true}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference"
            ],
            "properties": {
              "text": {
                "type": "string",
                "maxLength": 200000,
                "minLength": 40,
                "description": "The document text the user shared, not a file link: an invitation to tender, selection questionnaire, specification or instructions to bidders. Needed unless read_published is true. Signed in, later fit and readiness checks for the tender include what Winquill reads; signed out, it keeps nothing."
              },
              "title": {
                "type": "string",
                "description": "The document name, e.g. \"Invitation to Tender Part 2\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "read_published": {
                "type": "boolean",
                "description": "true to have Winquill fetch and read the files the buyer published with the notice, up to 8 (PDF, Word, Excel, web pages and ZIPs of them). Needs sign-in. Reading the scored questions with Winquill's AI uses a check's worth of the workspace's usage."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "note": {
                "type": "string"
              },
              "files": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "kind",
                    "name",
                    "url",
                    "expiresAt"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "description": "\"checklist\" for the checklist as an Excel workbook."
                    },
                    "name": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string",
                      "description": "When the link stops working, in ISO 8601."
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "found": {
                "type": "boolean"
              },
              "notRead": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "file",
                    "why"
                  ],
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "file": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "scoring": {
                "type": "object",
                "required": [
                  "scale",
                  "criteria"
                ],
                "properties": {
                  "scale": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "score",
                        "meaning"
                      ],
                      "properties": {
                        "score": {
                          "type": "number"
                        },
                        "meaning": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "criteria": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "weight": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "passMark": {
                    "type": "string"
                  }
                },
                "description": "How the buyer marks answers: its marks and what earns each, the pass mark, and how the award is split.",
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "signedIn": {
                "type": "boolean"
              },
              "tenderId": {
                "type": "string"
              },
              "checklist": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "requirement",
                    "must",
                    "file",
                    "evidence",
                    "quote"
                  ],
                  "properties": {
                    "file": {
                      "type": "string"
                    },
                    "must": {
                      "type": "boolean"
                    },
                    "page": {
                      "type": "number"
                    },
                    "quote": {
                      "type": "string"
                    },
                    "evidence": {
                      "type": "string"
                    },
                    "requirement": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                },
                "description": "Everything the bid must have, each with the file and page it's in, what to provide, and the buyer's own words (at most 280 characters)."
              },
              "questions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "question"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "words": {
                      "type": "number"
                    },
                    "weight": {
                      "type": "number"
                    },
                    "guidance": {
                      "type": "string"
                    },
                    "question": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                },
                "description": "The questions the buyer scores, with word limits and weights in per cent. Read by Winquill's AI; absent when it wasn't, and note says why."
              },
              "reference": {
                "type": "string"
              },
              "requirementsFound": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "item": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "words": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "number"
                    },
                    "mandatory": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "save_company_profile",
          "title": "Save company profile",
          "description": "Use this when the user wants Winquill to remember their business for searches, fit and readiness checks and drafting. Fill in only company facts the user has told you, leaving out anything unsure and any personal details, and show the user what you'll save so they can confirm or correct it first. Saves to their team's workspace and fills in more from Companies House (SAM.gov for a US company) and contracts the company has won. Needs a Winquill account. Not for personal profiles or CVs. Example: {\"summary\":\"Office and school cleaning in Greater Manchester\",\"company_number\":\"08123456\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "staff": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "How many people work for the company."
              },
              "regions": {
                "type": "array",
                "items": {
                  "enum": [
                    "North East",
                    "North West",
                    "Yorkshire and the Humber",
                    "East Midlands",
                    "West Midlands",
                    "East of England",
                    "London",
                    "South East",
                    "South West",
                    "Scotland",
                    "Wales",
                    "Northern Ireland",
                    "British Columbia",
                    "Alberta",
                    "Saskatchewan",
                    "Manitoba",
                    "Ontario",
                    "Quebec",
                    "New Brunswick",
                    "Nova Scotia",
                    "Prince Edward Island",
                    "Newfoundland and Labrador",
                    "Yukon",
                    "Northwest Territories",
                    "Nunavut",
                    "Alabama",
                    "Alaska",
                    "Arizona",
                    "Arkansas",
                    "California",
                    "Colorado",
                    "Connecticut",
                    "Delaware",
                    "District of Columbia",
                    "Florida",
                    "Georgia",
                    "Hawaii",
                    "Idaho",
                    "Illinois",
                    "Indiana",
                    "Iowa",
                    "Kansas",
                    "Kentucky",
                    "Louisiana",
                    "Maine",
                    "Maryland",
                    "Massachusetts",
                    "Michigan",
                    "Minnesota",
                    "Mississippi",
                    "Missouri",
                    "Montana",
                    "Nebraska",
                    "Nevada",
                    "New Hampshire",
                    "New Jersey",
                    "New Mexico",
                    "New York",
                    "North Carolina",
                    "North Dakota",
                    "Ohio",
                    "Oklahoma",
                    "Oregon",
                    "Pennsylvania",
                    "Rhode Island",
                    "South Carolina",
                    "South Dakota",
                    "Tennessee",
                    "Texas",
                    "Utah",
                    "Vermont",
                    "Virginia",
                    "Washington",
                    "West Virginia",
                    "Wisconsin",
                    "Wyoming",
                    "Puerto Rico",
                    "Guam",
                    "U.S. Virgin Islands",
                    "American Samoa",
                    "Northern Mariana Islands",
                    "Baden-Württemberg",
                    "Bayern",
                    "Berlin",
                    "Brandenburg",
                    "Bremen",
                    "Hamburg",
                    "Hessen",
                    "Mecklenburg-Vorpommern",
                    "Niedersachsen",
                    "Nordrhein-Westfalen",
                    "Rheinland-Pfalz",
                    "Saarland",
                    "Sachsen",
                    "Sachsen-Anhalt",
                    "Schleswig-Holstein",
                    "Thüringen",
                    "Auvergne-Rhône-Alpes",
                    "Bourgogne-Franche-Comté",
                    "Bretagne",
                    "Centre-Val de Loire",
                    "Corse",
                    "Grand Est",
                    "Hauts-de-France",
                    "Île-de-France",
                    "Normandie",
                    "Nouvelle-Aquitaine",
                    "Occitanie",
                    "Pays de la Loire",
                    "Provence-Alpes-Côte d'Azur",
                    "Guadeloupe",
                    "Martinique",
                    "Guyane",
                    "La Réunion",
                    "Mayotte",
                    "Austria",
                    "Belgium",
                    "Bulgaria",
                    "Croatia",
                    "Cyprus",
                    "Czechia",
                    "Denmark",
                    "Estonia",
                    "Finland",
                    "Greece",
                    "Hungary",
                    "Ireland",
                    "Italy",
                    "Latvia",
                    "Lithuania",
                    "Luxembourg",
                    "Malta",
                    "Netherlands",
                    "Poland",
                    "Portugal",
                    "Romania",
                    "Slovakia",
                    "Slovenia",
                    "Spain",
                    "Sweden"
                  ],
                  "type": "string",
                  "description": "Where the work or delivery happens: a UK nation or English region, e.g. \"North West\" for Manchester or Liverpool; a Canadian province or territory, e.g. \"Ontario\" for Toronto; a US state, e.g. \"Virginia\"; a German Land by its German name, e.g. \"Bayern\" for Munich; a French region, e.g. \"Île-de-France\" for Paris; or another EU member state, e.g. \"Poland\". Omit for nationwide contracts or when the user names no place."
                },
                "description": "Where the company works, e.g. [\"North West\", \"Yorkshire and the Humber\"] or [\"Ontario\", \"Quebec\"]."
              },
              "summary": {
                "type": "string",
                "maxLength": 4000,
                "minLength": 10,
                "description": "What the company does, who for and where, in a few sentences. Leave it out to keep the description Winquill has, such as when only adding codes or a trading name; a new one replaces it."
              },
              "website": {
                "type": "string",
                "description": "The company's website, e.g. \"northbridge.co.uk\"."
              },
              "add_codes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CPV codes to add to the ones the company works under, 8 digits each, e.g. [\"60130000\"] when the user adds SEND transport. Pick the most specific codes that fit the work the user names; adding never takes codes off."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "nationwide": {
                "type": "boolean",
                "description": "True when the company works anywhere in its country."
              },
              "buyer_types": {
                "type": "array",
                "items": {
                  "enum": [
                    "central_government",
                    "local_authority",
                    "nhs",
                    "education",
                    "housing",
                    "emergency_services",
                    "devolved_government",
                    "defence",
                    "utilities"
                  ],
                  "type": "string"
                },
                "description": "Kinds of public buyer the company has worked for, e.g. [\"local_authority\", \"education\"]."
              },
              "company_name": {
                "type": "string",
                "description": "The company's name, e.g. \"Northbridge Services Ltd\"."
              },
              "remove_codes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CPV codes to take off, e.g. [\"80500000\"]."
              },
              "trading_name": {
                "type": "string",
                "maxLength": 160,
                "description": "The name the company bids under, when it isn't its registered name, e.g. \"Plenda\" for Eshmere Ltd."
              },
              "turnover_gbp": {
                "type": "number",
                "minimum": 0,
                "description": "Annual turnover in the company's home currency (pounds for a UK company, Canadian dollars for a Canadian one), e.g. 2400000."
              },
              "business_size": {
                "enum": [
                  "micro",
                  "small",
                  "medium",
                  "large",
                  "vcse"
                ],
                "type": "string",
                "description": "The company's size, e.g. \"small\" for under 50 staff. Use \"vcse\" for charities and social enterprises."
              },
              "certifications": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Certifications and accreditations it holds, e.g. [\"iso_9001\", \"cyber_essentials\", \"chas\"]. Add an expiry as \"cyber_essentials:2026-11-30\"."
              },
              "company_number": {
                "type": "string",
                "description": "The Companies House number, e.g. \"08123456\" or \"SC123456\", or for a US company its SAM.gov Unique Entity ID (UEI), e.g. \"JX4M7Q2LK9C1\". Winquill looks the company up and finds the public contracts it has won."
              },
              "largest_contract_gbp": {
                "type": "number",
                "minimum": 0,
                "description": "The largest contract, a year, the company would take on, in its home currency."
              },
              "public_liability_gbp": {
                "type": "number",
                "minimum": 0,
                "description": "Public liability (in Canada, commercial general liability) cover in the company's home currency, e.g. 5000000."
              },
              "employers_liability_gbp": {
                "type": "number",
                "minimum": 0,
                "description": "Employer's liability cover in the company's home currency, e.g. 10000000."
              },
              "professional_indemnity_gbp": {
                "type": "number",
                "minimum": 0,
                "description": "Professional indemnity cover in the company's home currency."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "saved": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "workspace": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_pipeline_status",
          "title": "Get pipeline status",
          "description": "Use this when the user asks how their team's bids are going, for a status report, or what is due: how many tenders are in each stage of their Winquill pipeline, which bids are running with their next step and due date, which tenders still need the bid or no-bid call, and which bids are waiting on a result. Needs a Winquill account and workspace. Do not use to find new tenders (use search_tenders) or for alerts from saved watches (use get_tender_updates).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "links": {
                "type": "object",
                "properties": {
                  "bids": {
                    "type": "string"
                  },
                  "board": {
                    "type": "string"
                  },
                  "today": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "stages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    },
                    "stage": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "running": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string"
                    },
                    "next": {
                      "type": "object",
                      "properties": {
                        "due": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "step": {
                          "type": "string"
                        },
                        "dueAt": {
                          "type": "string"
                        },
                        "assignee": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "steps": {
                      "type": "number"
                    },
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "closes": {
                      "type": "string"
                    },
                    "closesAt": {
                      "type": "string"
                    },
                    "daysLeft": {
                      "type": "number"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "stepsDone": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "callsToMake": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string"
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "stage": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "closes": {
                      "type": "string"
                    },
                    "assignee": {
                      "type": "string"
                    },
                    "closesAt": {
                      "type": "string"
                    },
                    "daysLeft": {
                      "type": "number"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "stageName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "awaitingResult": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string"
                    },
                    "buyer": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "closes": {
                      "type": "string"
                    },
                    "closesAt": {
                      "type": "string"
                    },
                    "daysLeft": {
                      "type": "number"
                    },
                    "reference": {
                      "type": "string"
                    },
                    "submitted": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_to_pipeline",
          "title": "Add to pipeline",
          "description": "Use this when the user wants to save a tender to their team's pipeline to consider bidding, e.g. \"add this to our pipeline\" or \"let's track the Falkirk cleaning framework\". Adds it in Watching, ready for the bid or no-bid call, and says which e-tendering portal the tender is run on. Until the team has said whether it has an account on that portal, the answer asks; pass the question on, and record the reply with record_portal_account. Needs a Winquill account and workspace. Do not use for alerts about new tenders (use watch_tenders) or to record a decision to bid (use record_bid_call).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference"
            ],
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "more_references": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 3,
                  "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
                },
                "maxItems": 4,
                "description": "More tenders to add at the same time, by the same kind of reference, when the user asks for several, e.g. \"add the two best fits\". Up to 4."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "added": {
                "type": "boolean"
              },
              "stage": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "tenders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "record_portal_account",
          "title": "Note a portal account",
          "description": "Use this when the user says whether their company has an account on the e-tendering portal a tender is run on, where suppliers get the tender pack and bid, often after Winquill asked as a tender joined the pipeline: \"yes, we have an EU-Supply account\" or \"no, we're not on Atamis yet\". Notes it for the whole team, so Winquill stops asking about that portal. Give the tender's reference, or the portal's name or the key Winquill gave (portal.key). Needs a Winquill account and workspace. Do not use to sign in to a portal: Winquill never handles portal passwords.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "has_account"
            ],
            "properties": {
              "portal": {
                "type": "string",
                "maxLength": 200,
                "description": "The portal, e.g. \"EU-Supply\" or \"Public Contracts Scotland\", or the key Winquill gave for it, e.g. \"atamis:health-family.force.com\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "has_account": {
                "type": "boolean",
                "description": "Whether the company has an account on the portal."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "recorded": {
                "type": "boolean"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "hasAccount": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "record_bid_call",
          "title": "Record the bid call",
          "description": "Use this when the user's team has decided whether to bid: records the bid or no-bid call, the team's answers to Winquill's five questions and the reason. A bid moves the tender to Bidding and plans a six-step sprint back from the deadline; a tender not in the pipeline is added first. Confirm the decision with the user before calling. Needs a Winquill account and a role that makes bid calls. Not for judging fit before the call (use assess_tender_fit). Example: {\"tender_reference\":\"012345-2026\",\"decision\":\"bid\",\"answers\":{\"fit\":\"yes\"}}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference",
              "decision"
            ],
            "properties": {
              "reason": {
                "type": "string",
                "maxLength": 2000,
                "description": "Why, in the user's words, for the team to read later."
              },
              "answers": {
                "type": "object",
                "properties": {
                  "fit": {
                    "enum": [
                      "yes",
                      "unsure",
                      "no"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "enum": [
                      "yes",
                      "unsure",
                      "no"
                    ],
                    "type": "string"
                  },
                  "capacity": {
                    "enum": [
                      "yes",
                      "unsure",
                      "no"
                    ],
                    "type": "string"
                  },
                  "competition": {
                    "enum": [
                      "yes",
                      "unsure",
                      "no"
                    ],
                    "type": "string"
                  },
                  "eligibility": {
                    "enum": [
                      "yes",
                      "unsure",
                      "no"
                    ],
                    "type": "string"
                  }
                },
                "description": "The team's answers to Winquill's five questions, each \"yes\", \"unsure\" or \"no\": fit (is this work we do well), eligibility (do we meet every must-have), capacity (can we deliver it and write the bid in time), competition (can we beat the other bidders) and value (is it worth winning). Leave out questions the user didn't answer."
              },
              "decision": {
                "enum": [
                  "bid",
                  "no_bid"
                ],
                "type": "string",
                "description": "\"bid\" when the team will bid, \"no_bid\" when it will not."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "stage": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "recorded": {
                "type": "boolean"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "update_bid_sprint",
          "title": "Update the bid sprint",
          "description": "Use this when the user says a step of a bid their team is running is done, or not done after all: decode the pack, assign questions, draft answers, review and score, final checks or submit. Ticks it off with who did it and when, and says what is next and when it is due. Ticking submit moves the tender to Submitted. Needs a Winquill account and a bid sprint, which starts with a call to bid (record_bid_call). Do not use to write or check answers (use draft_bid_response or review_bid_draft).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference",
              "step"
            ],
            "properties": {
              "done": {
                "type": "boolean",
                "description": "false to reopen a step ticked off by mistake. Defaults to true."
              },
              "step": {
                "enum": [
                  "decode",
                  "assign",
                  "draft",
                  "review",
                  "checks",
                  "submit"
                ],
                "type": "string",
                "description": "The step: \"decode\" (read the tender pack), \"assign\" (give each question an owner), \"draft\" (write the answers), \"review\" (score them), \"checks\" (final checks) or \"submit\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "stage": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "updated": {
                "type": "boolean"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "assign_task",
          "title": "Give out bid work",
          "description": "Use this when the user gives work on a team bid to someone, or takes it on: \"give the Bristol bid call to Sam\". The work is the bid call while a tender waits in Watching or Qualifying, or a sprint step, the next one unless named. Says who has it and whether they heard in Slack. When the person's role can't do it, the answer says who can: ask the user before choosing one. Needs a Winquill account and workspace. Not for ticking off a step (use update_bid_sprint) or the call itself (use record_bid_call). Example: {\"tender_reference\":\"012345-2026\",\"person\":\"Sam\",\"task\":\"review\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference",
              "person"
            ],
            "properties": {
              "task": {
                "enum": [
                  "call",
                  "decode",
                  "assign",
                  "draft",
                  "review",
                  "checks",
                  "submit"
                ],
                "type": "string",
                "description": "The work: \"call\" (the bid or no-bid call), or a sprint step: \"decode\", \"assign\", \"draft\", \"review\", \"checks\" or \"submit\". Leave it out for the tender's next piece of work."
              },
              "person": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Who gets it: their name as the team knows them, e.g. \"Sam\" or \"Sam Okafor\", their email, or \"me\" for the user. Owners, admins and bid leads give out work; anyone can take work their role can do. Someone not in the workspace yet is invited from Today in the Winquill dashboard."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "stage": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "assigned": {
                "type": "boolean"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "move_in_pipeline",
          "title": "Move a tender in the pipeline",
          "description": "Use this when the user wants to change where a tender stands in their team's Winquill pipeline: to Qualifying while they look into it, back to Watching, to Submitted, or to Won or Lost when the buyer announces the result. Moving to Bidding or No bid takes the bid or no-bid call (use record_bid_call). Needs a Winquill account and workspace. Do not use to take a tender off the pipeline (use remove_from_pipeline).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference",
              "stage"
            ],
            "properties": {
              "stage": {
                "enum": [
                  "watching",
                  "qualifying",
                  "bidding",
                  "submitted",
                  "won",
                  "lost",
                  "no_bid"
                ],
                "type": "string",
                "description": "Where the tender goes: \"watching\", \"qualifying\", \"bidding\", \"submitted\", \"won\", \"lost\" or \"no_bid\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "moved": {
                "type": "boolean"
              },
              "stage": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "remove_from_pipeline",
          "title": "Take a tender off the pipeline",
          "description": "Use this when the user wants a tender taken off their team's Winquill pipeline, for good or until a change brings it back: \"remove it until it gets a value\". It deletes the tender's bid call, sprint and the files the team added; for one in Bidding, Submitted, Won or Lost the answer asks first, so confirm with the user and call again with confirmed. Needs a Winquill account and workspace. Not for moving a tender to another stage (use move_in_pipeline) or a no-bid call (use record_bid_call). Example: {\"tender_reference\":\"012345-2026\",\"return_when\":\"value\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference"
            ],
            "properties": {
              "confirmed": {
                "type": "boolean",
                "description": "True once the user has confirmed taking off a tender with a bid under way or a result."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "return_when": {
                "enum": [
                  "value",
                  "deadline",
                  "opens",
                  "any_change"
                ],
                "type": "string",
                "description": "Put it back in Watching when this happens, and tell the user: \"value\" when the buyer publishes or changes its value, \"deadline\" when the deadline moves, \"opens\" when a pipeline notice opens for bids, \"any_change\" for any change to the notice. Leave out to take it off for good."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "from": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "closesAt": {
                    "type": "string"
                  },
                  "daysLeft": {
                    "type": "number"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "removed": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "fromName": {
                "type": "string"
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "returnWhen": {
                "type": "string"
              },
              "needsConfirming": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "choose_alerts",
          "title": "Choose where Winquill's alerts go",
          "description": "Use this when the user wants to change which Slack and Teams channels get Winquill's alerts, or asks where they go: \"stop the morning summary in Slack\". Change only what the user asked for; with neither send nor stop it changes nothing and says where alerts go now. Owners and admins can change alerts. Needs a Winquill account and workspace. Not for connecting a channel (Winquill dashboard, Settings, Connections) or for email alerts (use watch_tenders). Example: {\"app\":\"slack\",\"stop\":[\"morning_summary\"]}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "app": {
                "enum": [
                  "slack",
                  "teams"
                ],
                "type": "string",
                "description": "\"slack\" or \"teams\" for that app's channels. Leave out app and channel for every channel."
              },
              "only": {
                "type": "boolean",
                "description": "true when what's sent here should go only here: every other channel stops getting it. An app or channel the user didn't mention otherwise keeps its alerts."
              },
              "send": {
                "type": "array",
                "items": {
                  "enum": [
                    "new_tenders",
                    "changes",
                    "morning_summary",
                    "bid_work",
                    "all"
                  ],
                  "type": "string"
                },
                "description": "Alerts to turn on in those channels: \"new_tenders\" (new tenders that fit the company), \"changes\" (changes to tenders in the pipeline), \"morning_summary\" (the weekday morning summary), \"bid_work\" (bid work nobody has yet), or \"all\"."
              },
              "stop": {
                "type": "array",
                "items": {
                  "enum": [
                    "new_tenders",
                    "changes",
                    "morning_summary",
                    "bid_work",
                    "all"
                  ],
                  "type": "string"
                },
                "description": "Alerts to turn off in those channels: \"new_tenders\" (new tenders that fit the company), \"changes\" (changes to tenders in the pipeline), \"morning_summary\" (the weekday morning summary), \"bid_work\" (bid work nobody has yet), or \"all\". A channel with no alerts stays connected, so the team can still ask Winquill there."
              },
              "channel": {
                "type": "string",
                "maxLength": 200,
                "description": "One channel, by its name: e.g. \"bids\" or \"#bids\" in Slack, or \"General\" in Teams."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "channels": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "app": {
                      "type": "string"
                    },
                    "alerts": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "channel": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "start_bid_draft",
          "title": "Have Winquill draft the bid",
          "description": "Use this when the user wants Winquill to write a whole bid for their team: it asks a few questions, drafts every answer from the company's evidence, then marks and revises them. Relay Winquill's questions as they are. A whole bid uses one of the month's full bids, so first call it without confirmed, tell the user how many are left and offer to write it here with draft_bid_response, which uses none; call again with confirmed only if they choose Winquill. notify says where to hear when it's ready. Needs a Winquill account and workspace. Example: {\"tender_reference\":\"012345-2026\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference"
            ],
            "properties": {
              "notify": {
                "type": "array",
                "items": {
                  "enum": [
                    "slack",
                    "teams"
                  ],
                  "type": "string"
                },
                "maxItems": 2,
                "description": "Where Winquill says when the draft is ready, e.g. [\"slack\"]: the first of these apps where it has somewhere to say it, the conversation this call came from or else the workspace's first connected channel there. An empty list for nowhere."
              },
              "confirmed": {
                "type": "boolean",
                "description": "true once the user, told it uses one of this month's full bids, chose Winquill's drafting over writing it here answer by answer with draft_bid_response. Leave it out the first time."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "questions_text": {
                "type": "string",
                "maxLength": 200000,
                "description": "The buyer's questions, or the invitation to tender's text, as the user shared it, including the text of files they attached. Left out, Winquill reads the documents the buyer published with the notice, or asks for them."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "status": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "confirm": {
                "type": "boolean"
              },
              "draftId": {
                "type": "string"
              },
              "started": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "bidsLeft": {
                "type": "number"
              },
              "progress": {
                "type": "object",
                "required": [
                  "step",
                  "stepsDone",
                  "steps",
                  "answersWritten",
                  "answers"
                ],
                "properties": {
                  "step": {
                    "type": "string",
                    "description": "questions, team, plan, write, mark, revise or ready; stopped when drafting stopped."
                  },
                  "steps": {
                    "type": "number"
                  },
                  "answers": {
                    "type": "number"
                  },
                  "stepsDone": {
                    "type": "number",
                    "description": "Steps done of steps: all of them once it's ready."
                  },
                  "answersWritten": {
                    "type": "number"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "continue_bid_draft",
          "title": "Carry on Winquill's bid draft",
          "description": "Use this to carry on a bid draft Winquill started with start_bid_draft: give it the buyer's questions it asked for, the team's answers to the questions Winquill asked, or the go-ahead to draft now with what it has (Winquill marks the gaps [TO CONFIRM]). Drafting starts once Winquill's questions are answered, or when draft_now is true. Pass each answer with the question's number or words. Needs a Winquill account. Do not use for a new bid (use start_bid_draft).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "notes": {
                "type": "string",
                "maxLength": 4000,
                "description": "Anything else the team wants Winquill to use in the bid."
              },
              "answers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "question",
                    "answer"
                  ],
                  "properties": {
                    "answer": {
                      "type": "string",
                      "description": "The team's answer, in their words."
                    },
                    "question": {
                      "type": "string",
                      "description": "The question Winquill asked, by its number such as \"2\", or its words."
                    }
                  }
                },
                "description": "The team's answers to Winquill's questions."
              },
              "draft_id": {
                "type": "string",
                "description": "The draft's ID, from start_bid_draft. Or give the tender's reference instead, or neither for the workspace's latest draft."
              },
              "draft_now": {
                "type": "boolean",
                "description": "true to start drafting now, with any of Winquill's questions unanswered."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "questions_text": {
                "type": "string",
                "maxLength": 200000,
                "description": "The buyer's questions, when Winquill asked for them."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "status": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "draftId": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "progress": {
                "type": "object",
                "required": [
                  "step",
                  "stepsDone",
                  "steps",
                  "answersWritten",
                  "answers"
                ],
                "properties": {
                  "step": {
                    "type": "string",
                    "description": "questions, team, plan, write, mark, revise or ready; stopped when drafting stopped."
                  },
                  "steps": {
                    "type": "number"
                  },
                  "answers": {
                    "type": "number"
                  },
                  "stepsDone": {
                    "type": "number",
                    "description": "Steps done of steps: all of them once it's ready."
                  },
                  "answersWritten": {
                    "type": "number"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "get_bid_draft",
          "title": "Check on Winquill's bid draft",
          "description": "Use this when the user asks how a bid Winquill is drafting is going, or wants to read it: its progress in steps and answers written, each question with its word count and Winquill's mark out of 5, what's left for the team to confirm, and the check of the whole bid. Give question to read that answer in full. Once it's ready, it gives a Word file link that works for an hour, and a link to the draft in Winquill. Needs a Winquill account. Example: {\"tender_reference\":\"012345-2026\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "draft_id": {
                "type": "string",
                "description": "The draft's ID, from start_bid_draft. Or give the tender's reference instead, or neither for the workspace's latest draft."
              },
              "question": {
                "type": "string",
                "description": "One answer to read in full, by the buyer's number, e.g. \"Q3\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "files": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "kind",
                    "name",
                    "url",
                    "expiresAt"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "description": "\"word\" for the draft as a Word document."
                    },
                    "name": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string",
                      "description": "When the link stops working, in ISO 8601."
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "status": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "draftId": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "progress": {
                "type": "object",
                "required": [
                  "step",
                  "stepsDone",
                  "steps",
                  "answersWritten",
                  "answers"
                ],
                "properties": {
                  "step": {
                    "type": "string",
                    "description": "questions, team, plan, write, mark, revise or ready; stopped when drafting stopped."
                  },
                  "steps": {
                    "type": "number"
                  },
                  "answers": {
                    "type": "number"
                  },
                  "stepsDone": {
                    "type": "number",
                    "description": "Steps done of steps: all of them once it's ready."
                  },
                  "answersWritten": {
                    "type": "number"
                  }
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "rewrite_bid_answer",
          "title": "Have Winquill rewrite an answer",
          "description": "Use this when the user wants Winquill to rewrite one answer in a bid it drafted, e.g. \"make Q3 shorter\" or \"use the Glasgow contract as the example in 2.1\". Winquill rewrites it in the background, marks it again and says when it's done. A bid's first ten rewrites are included; after that each uses a little of the workspace's allowance. Needs a Winquill account. Do not use before the draft is ready.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "question",
              "instruction"
            ],
            "properties": {
              "draft_id": {
                "type": "string",
                "description": "The draft's ID, from start_bid_draft. Or give the tender's reference instead, or neither for the workspace's latest draft."
              },
              "question": {
                "type": "string",
                "description": "The answer to rewrite, by the buyer's number, e.g. \"Q3\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "instruction": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 3,
                "description": "What to change, in the user's words."
              },
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "tender": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "buyer": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "draftId": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "progress": {
                "type": "object",
                "required": [
                  "step",
                  "stepsDone",
                  "steps",
                  "answersWritten",
                  "answers"
                ],
                "properties": {
                  "step": {
                    "type": "string",
                    "description": "questions, team, plan, write, mark, revise or ready; stopped when drafting stopped."
                  },
                  "steps": {
                    "type": "number"
                  },
                  "answers": {
                    "type": "number"
                  },
                  "stepsDone": {
                    "type": "number",
                    "description": "Steps done of steps: all of them once it's ready."
                  },
                  "answersWritten": {
                    "type": "number"
                  }
                },
                "additionalProperties": {}
              },
              "rewriting": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "add_winning_bid",
          "title": "Share a winning bid with Winquill",
          "description": "Use this when the user shares a bid their company won, for Winquill to learn from, e.g. after Winquill offers to learn from winning bids. Winquill keeps it in the workspace's Library and learns what worked in it (structure, tone, the evidence it uses) for the bids it drafts. Pass the bid's text as the user shared it, not a link. Needs a Winquill account and workspace. Do not use for the buyer's questions for a new bid (use start_bid_draft or continue_bid_draft).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "text"
            ],
            "properties": {
              "text": {
                "type": "string",
                "maxLength": 150000,
                "minLength": 200,
                "description": "The winning bid's text: its answers, as the user shared them."
              },
              "title": {
                "type": "string",
                "maxLength": 120,
                "description": "What it was, e.g. \"Glasgow schools cleaning, 2024\"."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "saved": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              },
              "words": {
                "type": "number"
              },
              "summary": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_automations",
          "title": "List automations",
          "description": "Use this when the user asks what Winquill does on its own for their team: the workspace's automations, each with its rules as sentences, whether it's on and what it last did, and the ones Winquill suggests. Needs a Winquill account and workspace. Not for making one (use add_automation) or what one did (use get_automation_history).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "automation": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "library": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "have": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "what": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "wouldHave": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "What it would have done over the last 30 days."
              },
              "automation": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "state",
                  "rules"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "last": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Each rule as a sentence."
                  },
                  "state": {
                    "type": "string"
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "runsAs": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "automations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "state",
                    "rules"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Each rule as a sentence."
                    },
                    "state": {
                      "type": "string"
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "runsAs": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_automation_library",
          "title": "Show the automations library",
          "description": "Use this when the user wants to know which automations Winquill can run for them, before making one with add_automation. Returns each one in Winquill's library, what it does and whether the workspace has it already. Needs a Winquill account and workspace.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "automation": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "library": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "have": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "what": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "wouldHave": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "What it would have done over the last 30 days."
              },
              "automation": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "state",
                  "rules"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "last": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Each rule as a sentence."
                  },
                  "state": {
                    "type": "string"
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "runsAs": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "automations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "state",
                    "rules"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Each rule as a sentence."
                    },
                    "state": {
                      "type": "string"
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "runsAs": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "add_automation",
          "title": "Add an automation",
          "description": "Use this when the user wants Winquill to do something on its own, again and again: add strong fits to the pipeline, remind people of sprint steps, check a bid before it closes, say what a buyer changed, or send a morning shortlist or a report. Makes one from the library, saved off. Read its rules back to the user; it runs only once turned on with turn_on_automation. Automations never submit a bid, write to a buyer or email anyone outside the team. Needs a Winquill account. Example: {\"template\":\"morning_shortlist\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "template"
            ],
            "properties": {
              "asked": {
                "type": "string",
                "maxLength": 500,
                "description": "What the user asked for, in their words."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string",
                    "pattern": "^\\d{2}:\\d{2}$",
                    "description": "For a shortlist or report: the time, e.g. \"08:00\", between 07:30 and 18:30."
                  },
                  "days": {
                    "enum": [
                      "weekdays",
                      "mon",
                      "tue",
                      "wed",
                      "thu",
                      "fri"
                    ],
                    "type": "string"
                  },
                  "most": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1,
                    "description": "For the shortlist: how many tenders."
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "hours": {
                    "type": "integer",
                    "maximum": 336,
                    "minimum": 1,
                    "description": "For the pre-submission check: hours before the deadline."
                  },
                  "words": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    },
                    "maxItems": 10,
                    "description": "Only tenders that mention one of these words."
                  },
                  "call_to": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Who gets the bid call: a name or email of someone in the workspace, or \"me\"."
                  },
                  "channel": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "A connected Slack or Teams channel to post to, e.g. \"#bids\"."
                  },
                  "regions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 60
                    },
                    "maxItems": 20,
                    "description": "Only tenders in these regions, e.g. [\"Scotland\"]."
                  },
                  "max_value": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "min_value": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Only tenders worth at least this, in the tender's currency."
                  },
                  "tell_person": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Someone to tell instead: a name or email, or \"me\"."
                  },
                  "working_days": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1,
                    "description": "For sprint reminders: working days before a step is due."
                  },
                  "min_days_left": {
                    "type": "integer",
                    "maximum": 60,
                    "minimum": 0,
                    "description": "Only tenders with at least this many days before the deadline."
                  }
                },
                "description": "What the user asked to change from the library's version."
              },
              "template": {
                "enum": [
                  "morning_shortlist",
                  "strong_fit",
                  "change_guard",
                  "renewals",
                  "sprint_autopilot",
                  "pre_submission",
                  "award_debrief",
                  "weekly_report"
                ],
                "type": "string",
                "description": "The library automation to make: morning_shortlist (Morning shortlist: Each weekday, the best new fits, each with a line on why it fits.); strong_fit (Strong fit to pipeline: Adds strong fits to the pipeline, checks readiness and gives out the bid call.); change_guard (Change guard: Says what a buyer changed and moves the sprint's dates to a new deadline.); renewals (Certificates and renewals: 60, 30 and 7 days before a certificate, policy or registration runs out.); sprint_autopilot (Sprint on autopilot: Reminds whoever has a step two working days before it's due, and says when one is late.); pre_submission (Pre-submission check: 72 hours out: word limits, gaps and open steps. 24 hours out: is it in?); award_debrief (Award and debrief: Says who won when the award is published, and drafts a request for feedback.); weekly_report (Weekly pipeline report: Mondays: pipeline value, bids due, results and anything overdue.)."
              },
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "automation": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "library": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "have": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "what": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "wouldHave": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "What it would have done over the last 30 days."
              },
              "automation": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "state",
                  "rules"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "last": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Each rule as a sentence."
                  },
                  "state": {
                    "type": "string"
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "runsAs": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "automations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "state",
                    "rules"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Each rule as a sentence."
                    },
                    "state": {
                      "type": "string"
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "runsAs": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "turn_on_automation",
          "title": "Turn on an automation",
          "description": "Use this only after you have read an automation's rules back to the user in plain words and they said yes to turning it on. From then on it runs as the user, outside quiet hours, and acts on the team's pipeline as its rules say. Automations never submit a bid, send anything to a buyer, decline a tender, email anyone outside the team or change who is in the workspace. Needs a Winquill account; owners, admins and bid leads turn them on. Not for turning one off (use turn_off_automation).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation"
            ],
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "automation": {
                "type": "string",
                "maxLength": 120,
                "description": "The automation, by its name or id, as list_automations gives it."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "automation": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "library": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "have": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "what": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "wouldHave": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "What it would have done over the last 30 days."
              },
              "automation": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "state",
                  "rules"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "last": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Each rule as a sentence."
                  },
                  "state": {
                    "type": "string"
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "runsAs": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "automations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "state",
                    "rules"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Each rule as a sentence."
                    },
                    "state": {
                      "type": "string"
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "runsAs": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "turn_off_automation",
          "title": "Turn off an automation",
          "description": "Use this when the user wants one of the workspace's automations to stop. It stops running and keeps its rules and history, so it can be turned on again. Needs a Winquill account; owners, admins and bid leads turn them off.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "automation"
            ],
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "automation": {
                "type": "string",
                "maxLength": 120,
                "description": "The automation, by its name or id, as list_automations gives it."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "automation": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "library": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "have": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "what": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "wouldHave": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "What it would have done over the last 30 days."
              },
              "automation": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "state",
                  "rules"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "last": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Each rule as a sentence."
                  },
                  "state": {
                    "type": "string"
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "runsAs": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "automations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "state",
                    "rules"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Each rule as a sentence."
                    },
                    "state": {
                      "type": "string"
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "runsAs": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_automation_history",
          "title": "Show what automations did",
          "description": "Use this when the user asks what Winquill's automations did lately: the last 10 things they did, newest first, for one automation or all of them. Needs a Winquill account and workspace.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "workspace": {
                "type": "string",
                "description": "The Winquill workspace to use, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              },
              "automation": {
                "type": "string",
                "maxLength": 120,
                "description": "One automation, by its name or id. Leave out for all of them."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "at": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "automation": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "library": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "have": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "what": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "summary": {
                "type": "string"
              },
              "wouldHave": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "What it would have done over the last 30 days."
              },
              "automation": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "state",
                  "rules"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "last": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Each rule as a sentence."
                  },
                  "state": {
                    "type": "string"
                  },
                  "where": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "runsAs": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "automations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "state",
                    "rules"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Each rule as a sentence."
                    },
                    "state": {
                      "type": "string"
                    },
                    "where": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "runsAs": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "why": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "share_tender",
          "title": "Share a tender",
          "description": "Use this when the user wants to share a tender or send someone its link. Returns a link anyone can open without signing in: it shows what the public notice says, and chat apps preview it with the tender's name, value and closing date. Give the link as it is. Nothing about the user or their workspace is in the link or on the page.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "tender_reference"
            ],
            "properties": {
              "tender_reference": {
                "type": "string",
                "minLength": 3,
                "description": "The notice ID, procurement identifier, solicitation number or the buyer's own reference, e.g. \"012345-2026\" on Find a Tender, \"WS4851234567\" on CanadaBuys or \"140D0427Q0879\" on SAM.gov."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary"
            ],
            "properties": {
              "link": {
                "type": "string",
                "description": "The share link: give it to the user as it is."
              },
              "found": {
                "type": "boolean"
              },
              "credit": {
                "type": "string"
              },
              "shared": {
                "type": "boolean",
                "description": "False when the tender's source can't be shared yet."
              },
              "tender": {
                "type": "object",
                "required": [
                  "reference",
                  "title",
                  "buyer"
                ],
                "properties": {
                  "buyer": {
                    "type": "string"
                  },
                  "stage": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  },
                  "closes": {
                    "type": "string"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              },
              "summary": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_coverage",
          "title": "Show Winquill's coverage",
          "description": "Use this to know where Winquill looks: the countries and sources it reads, how many open, upcoming and awarded notices each holds, and when each was last read. Use it before telling the user a tender isn't published anywhere Winquill reads, or to say how fresh results are. Not for searching (use search_tenders). Example: {\"country\":\"Canada\"}",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "country": {
                "type": "string",
                "description": "One country, e.g. \"Canada\", \"UK\" or \"Germany\". Omit for every country Winquill covers. Winquill reads Find a Tender, Contracts Finder, Public Contracts Scotland, Sell2Wales, CanadaBuys, SEAO, Toronto Bids, SAM.gov, USAC E-Rate, City Record Online, RAMP LA, SF City Partner, DC PASS, oeffentlichevergabe.de, BOAMP, TED, PLACSP, IUB (Latvia) and KIMDIS (Greece)."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "summary",
              "covered",
              "countries"
            ],
            "properties": {
              "asOf": {
                "type": "string"
              },
              "covered": {
                "type": "boolean"
              },
              "summary": {
                "type": "string"
              },
              "countries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "market",
                    "country",
                    "openTendersShown",
                    "sources"
                  ],
                  "properties": {
                    "market": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "source",
                          "name",
                          "open",
                          "upcoming",
                          "awarded"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "open": {
                            "type": "number"
                          },
                          "source": {
                            "type": "string"
                          },
                          "awarded": {
                            "type": "number"
                          },
                          "upcoming": {
                            "type": "number"
                          },
                          "lastReadAt": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": {}
                      }
                    },
                    "openTendersShown": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "open_tenda",
          "title": "Winquill",
          "description": "Opens Winquill's own app from ChatGPT's sidebar: Today, the team's board, Find and each tender, with the bid call. The app moves between its pages itself.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "path": {
                "type": "string",
                "maxLength": 400
              },
              "workspace": {
                "type": "string",
                "maxLength": 200
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "open_bid_panel",
          "title": "Bid panel",
          "description": "Opens the team's live bids beside a chat: each bid's steps and questions, what scores, and a way to work on one in the chat.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "path": {
                "type": "string",
                "maxLength": 400
              },
              "workspace": {
                "type": "string",
                "maxLength": 200
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "tenda_changes",
          "title": "Check for changes",
          "description": "Says when the team's work in a workspace last changed, for Winquill's app to keep its page up to date.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "workspace"
            ],
            "properties": {
              "workspace": {
                "type": "string",
                "maxLength": 200
              },
              "tender_reference": {
                "type": "string",
                "maxLength": 200
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "search_mentions",
          "title": "Find a tender or person to mention",
          "description": "Finds the team's tenders and people by name, for @ mentions in ChatGPT.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "maxLength": 200
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "items"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "resourceUri",
                    "title"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "resource"
                    },
                    "title": {
                      "type": "string"
                    },
                    "subtitle": {
                      "type": "string"
                    },
                    "resourceUri": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_tenda_settings",
          "title": "Winquill settings",
          "description": "Use this when the user asks which Winquill workspace ChatGPT uses, or which countries' tenders it shows: returns Winquill's settings in ChatGPT, the workspace (for someone in more than one) and the workspace's countries. Needs a Winquill account. Do not use for the company profile (use save_company_profile).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "schema",
              "values"
            ],
            "properties": {
              "layout": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "values": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_tenda_settings",
          "title": "Change Winquill settings",
          "description": "Use this when the user wants ChatGPT to use another of their Winquill workspaces, or to show tenders from another country or stop: set \"workspace\" to the workspace's name, or a country's key from get_tenda_settings (such as \"us\") to true or false. The workspace's home country stays on. Owners and admins change countries. Needs a Winquill account.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "set"
            ],
            "properties": {
              "set": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": [
                    "string",
                    "boolean"
                  ]
                }
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "values"
            ],
            "properties": {
              "values": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "set_up_tenda",
          "title": "Set up Winquill",
          "description": "Use this when the user wants to set Winquill up for their company, or has just added Winquill and has no workspace yet: shows a short form in the chat for the company, where it works and the work it does, then how many open tenders fit it now. Needs a Winquill account. Do not use to change one fact the user names, such as a certification (use save_company_profile).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "workspace": {
                "type": "string",
                "maxLength": 200,
                "description": "The Winquill workspace to set up, by name, when the user is in more than one, e.g. \"Northbridge Services\"."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "find_company",
          "title": "Find a company",
          "description": "Finds a UK company on Companies House by name, for Winquill's setup.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "finish_setup",
          "title": "Finish setup",
          "description": "Saves what Winquill's setup was told, making the workspace for someone without one, and finds the open tenders that fit.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name",
              "regions",
              "work"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              },
              "size": {
                "enum": [
                  "small",
                  "mid",
                  "large"
                ],
                "type": "string"
              },
              "work": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 80
                },
                "maxItems": 100
              },
              "market": {
                "type": "string",
                "maxLength": 10
              },
              "regions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 80
                },
                "maxItems": 300
              },
              "workspace": {
                "type": "string",
                "maxLength": 200
              },
              "company_number": {
                "type": "string",
                "maxLength": 20
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "destructiveHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "tenda-card",
          "uri": "ui://tenda/card.html",
          "mimeType": "text/html;profile=mcp-app",
          "description": "Shows Winquill's answers as cards in the chat."
        },
        {
          "name": "tenda-app",
          "uri": "ui://tenda/app.html",
          "mimeType": "text/html;profile=mcp-app",
          "description": "Winquill's own app: Today, the board, Find, each tender, the bid panel and setup."
        }
      ],
      "prompts": []
    },
    "instructions": "Winquill is public sector tender intelligence for the UK, Canada, the United States, Germany, France and the rest of the EU. Use it to find public contract opportunities, explain a tender, look up past awards, judge whether a company should bid, check what documents it is missing, draft bid answers and watch for new tenders. Winquill returns facts and briefs; you write the prose. Never mention Winquill's plans, prices or upgrades. Never promise that a bid will win, and remind users that a person should review bids before they submit. When an answer says a workspace has no room for something, such as another bid, pass on what makes room. When an answer lists or compares things, its summary line is followed by a ready-made Markdown table: show it as it is, with its links, unless the user asks for another layout or Winquill's card already shows the answer. Under a card, add only what helps the user decide. Searches and alerts keep to the user's own countries unless they name another. When an answer has a credit line, which some publishers of tender data require, keep it with what you show from that answer."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}