UK Global Talent Visa Tools API

The Tools API from UK Global Talent Visa, for tools.

GitHub OpenAPI

Operations 19

POST /tools/search_handbook Search the Global Talent Handbook #
POST /tools/get_endorser Look up endorser criteria #
POST /tools/compare_visas Compare Global Talent to another visa #
POST /tools/estimate_cost Estimate Global Talent visa cost #
POST /tools/score_draft Grade a draft Global Talent application #
POST /tools/apply_now_url Return the canonical apply URL #
POST /tools/start_application Start a stateless application profile #
POST /tools/update_profile Patch a stateless application profile #
POST /tools/build_evidence_inventory Build a rated evidence inventory #
POST /tools/plan_referees Plan recommendation letters #
POST /tools/readiness_check Check application preparation readiness #
POST /tools/get_resume_url Get a link that opens the website with a profile pre-filled #
POST /tools/get_document_checklist Get the structured document checklist for a route #
POST /tools/get_timeline Get costs and a dated planning timeline (JSON or .ics) #
POST /tools/generate_personal_statement Draft a Global Talent personal statement #
POST /tools/random_success_story Return a public-record success story #
POST /tools/criterion_breakdown Break down the endorsement criteria #
POST /tools/compare_my_chances Assess chances and get an action plan #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ukglobaltalentvisa-org:ukglobaltalentvisa-org-tools-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ukglobaltalentvisa-org-tools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ukglobaltalentvisa Org Tools API
  version: 1.0.0
  contact:
    name: Global Talent AI
    url: https://ukglobaltalentvisa.org/mcp
  license:
    name: CC-BY-4.0 (content) / proprietary (scoring)
    url: https://ukglobaltalentvisa.org/mcp
  description: 'Operations tagged Tools across 2 of this provider''s published API definitions: mcp-openapi.json, ukglobaltalentvisa-org-mcp-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://ukglobaltalentvisa.org/mcp/rest
  description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
security: []
tags:
- name: Tools
paths:
  /tools/search_handbook:
    post:
      operationId: search_handbook
      summary: Search the Global Talent Handbook
      description: Full-text search across the five-chapter Global Talent Handbook. Returns the most relevant chapter passages with links back to ukglobaltalentvisa.org/faq.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  description: Natural-language question about the visa.
                limit:
                  type: integer
                  minimum: 1
                  maximum: 20
                  default: 5
                  description: Maximum number of passages to return.
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/get_endorser:
    post:
      operationId: get_endorser
      summary: Look up endorser criteria
      description: Returns criteria, typical turnaround, and evidence patterns for a given endorsing body or sub-route (e.g. digital-technology/exceptional-talent, academia/royal-society, arts/film-tv).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - route_slug
              properties:
                route_slug:
                  type: string
                  description: Endorser or sub-route slug.
                  enum:
                  - digital-technology
                  - digital-technology/exceptional-talent
                  - digital-technology/exceptional-promise
                  - academia
                  - academia/royal-society
                  - academia/british-academy
                  - academia/raeng
                  - academia/ukri-fast-track
                  - academia/peer-review
                  - arts
                  - arts/film-tv
                  - arts/fashion
                  - arts/architecture
                  - arts/music-literature-visual
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/compare_visas:
    post:
      operationId: compare_visas
      summary: Compare Global Talent to another visa
      description: Side-by-side comparison of the UK Global Talent visa against another immigration route.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - other
              properties:
                other:
                  type: string
                  description: Comparison target visa.
                  enum:
                  - skilled-worker
                  - o1
                  - innovator-founder
                  - eb1a
                  - eb2-eb3
                  - h1b
                  - l1
                  - graduate-visa
                  - uae-golden-visa
                  - singapore-employment-pass
                  - australia-858
                  - canada-express-entry
                  - canada-startup-visa
                  - ireland-critical-skills
                  - japan-highly-skilled-professional
                  - hong-kong-techtas
                  - new-zealand-skilled-migrant
                  - saudi-premium-residency
                  - spain-digital-nomad
                  - portugal-d8
                  - eb5
                  - france-tech-visa
                  - germany-chancenkarte
                  - germany-blue-card
                  - eu-blue-card
                  - netherlands-hsm
                  - eu-digital-nomad-visas
                  - uk-vs-eu-tech-visas
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/estimate_cost:
    post:
      operationId: estimate_cost
      summary: Estimate Global Talent visa cost
      description: Returns a GBP line-by-line cost breakdown for a Global Talent application (endorsement + visa fee + IHS + optional fast-track), scaled by family size and visa length.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - route
              - years
              properties:
                route:
                  type: string
                  description: Which endorsing-body route.
                  enum:
                  - tech
                  - academia
                  - arts
                years:
                  type: integer
                  minimum: 1
                  maximum: 5
                  description: Visa length in years.
                adults:
                  type: integer
                  minimum: 1
                  maximum: 2
                  default: 1
                  description: Number of adult applicants (main + partner).
                children:
                  type: integer
                  minimum: 0
                  maximum: 6
                  default: 0
                  description: Number of dependent children.
                priority:
                  type: boolean
                  default: false
                  description: Include the optional fast-track service fee (tech / academia only).
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/score_draft:
    post:
      operationId: score_draft
      summary: Grade a draft Global Talent application
      description: Grades a draft application against the four Tech Nation criteria (Recognition, Innovation, Impact, Contribution). Returns A+ through F with per-criterion rationale. Free and anonymous.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - form_data
              properties:
                form_data:
                  type: object
                  description: 'Free-form application data. Include any of: fullName, cvText, awards, publications, patents, mediaRecognition, otherAchievements, supportingDocuments, references.'
                  additionalProperties: true
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/apply_now_url:
    post:
      operationId: apply_now_url
      summary: Return the canonical apply URL
      description: Returns the canonical URL to begin a UK Global Talent Visa draft, optionally tagged with a referral source. Use as the start-draft CTA after an agent has helped a user evaluate their profile.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                referral:
                  type: string
                  description: Optional source/referral tag (e.g. "chatgpt", "perplexity", or a campaign name). Letters, digits, hyphen, underscore only; truncated to 64 chars.
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/get_checkout_link:
    post:
      operationId: get_checkout_link
      summary: Get the pricing and purchase hand-off
      description: 'Returns the purchase URL, price in GBP, access duration, what is included, refund terms and pilot status for the drafting studio. Does not start a payment: the user completes payment themselves on the website, and the agent must not claim a purchase happened.'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                client:
                  type: string
                  description: Optional calling client (e.g. "claude", "chatgpt", "gemini", "perplexity", "other"). Lower-cased, a-z 0-9 hyphen only, max 24 chars; used for the referral tag mcp-<client>.
                locale:
                  type: string
                  enum:
                  - en
                  - es
                  - hi
                  - ar
                  - zh
                  description: Optional user locale, echoed back. Defaults to "en".
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/start_application:
    post:
      operationId: start_application
      summary: Start a stateless application profile
      description: 'Starts a profile@1 application profile and returns it with a recommended route page, missing items and a next_step. The server stores nothing: keep the returned profile and pass it to update_profile. Do not include names, emails, passport numbers or dates of birth.'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                field:
                  type: string
                  enum:
                  - digital-technology
                  - academia
                  - arts
                  - unknown
                  description: Optional field of work. Defaults to "unknown".
                stage:
                  type: string
                  enum:
                  - established
                  - emerging
                  - unknown
                  description: Optional career stage (established = Exceptional Talent, emerging = Exceptional Promise). Defaults to "unknown".
                locale:
                  type: string
                  enum:
                  - en
                  - es
                  - hi
                  - ar
                  - zh
                  description: Optional user locale. Defaults to "en".
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/update_profile:
    post:
      operationId: update_profile
      summary: Patch a stateless application profile
      description: 'Applies a patch to a profile@1 object and returns the updated profile, recommended route, missing items and next_step. The server stores nothing: pass the full current profile on every call. Unknown fields and input over 8 KB are rejected with an error.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profile:
                  type: object
                  description: 'The current profile@1 object, exactly as last returned by start_application or update_profile. Schema: https://ukglobaltalentvisa.org/.well-known/profile.schema.json'
                patch:
                  type: object
                  description: 'Fields to change: field, route, stage, evidence_items (replaces), add_evidence_items (appends), referees (replaces), timeline_prefs (merges), locale, notes (max 500 chars), pseudonym. evidence_items entries are {criterion, summary (max 280 chars), strength: low|medium|high}; referees entries are {role, relationship, status: not-asked|asked|agreed|received}.'
              required:
              - profile
              - patch
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/build_evidence_inventory:
    post:
      operationId: build_evidence_inventory
      summary: Build a rated evidence inventory
      description: Turns the user's answers to the evidence-worksheet prompts into profile@1 evidence items, rates specificity, and returns coverage, thin criteria and the next questions. Deterministic and stateless; the server stores nothing.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profile:
                  type: object
                  description: 'The current profile@1 object, as last returned by start_application, update_profile or this tool. Schema: https://ukglobaltalentvisa.org/.well-known/profile.schema.json'
                answers:
                  type: array
                  maxItems: 12
                  items:
                    type: object
                  description: 'Up to 12 answers the user gave, gathered by the agent using the prompts on https://ukglobaltalentvisa.org/evidence-worksheet. Each is {criterion: criterion id or label for the profile''s field (leadership, innovation, commercial, technical, recognition; acad-publications, acad-grants, acad-international, acad-recommenders; arts-international, arts-innovation, arts-peer, arts-sustained), prompt_id?: a prompt id from that criterion, text: the user''s answer, max 1000 characters}. No names, emails or passport numbers.'
              required:
              - profile
              - answers
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/plan_referees:
    post:
      operationId: plan_referees
      summary: Plan recommendation letters
      description: 'Plans recommendation letters for a profile@1 object: three letters, at least two from outside the current employer, route-specific notes with the source page cited, priorities given the evidence and status follow-ups. Deterministic and stateless.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profile:
                  type: object
                  description: 'The current profile@1 object. Schema: https://ukglobaltalentvisa.org/.well-known/profile.schema.json'
              required:
              - profile
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/readiness_check:
    post:
      operationId: readiness_check
      summary: Check application preparation readiness
      description: Checks a profile@1 object against the preparation checklist (route, evidence, referees, documents) and returns {ready, missing[], next_step}. When ready, next_step points to get_checkout_link with requires_user_approval true. Never predicts approval. Deterministic and stateless.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profile:
                  type: object
                  description: 'The current profile@1 object. Schema: https://ukglobaltalentvisa.org/.well-known/profile.schema.json'
              required:
              - profile
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/get_resume_url:
    post:
      operationId: get_resume_url
      summary: Get a link that opens the website with a profile pre-filled
      description: Turns a profile@1 object into a link that opens ukglobaltalentvisa.org/start with the profile pre-filled. The profile is encoded in the URL fragment (never sent to servers); nothing is stored. Invalid or oversize (8 KB) input is rejected with an error. Does not start a payment.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profile:
                  type: object
                  description: 'A profile@1 object, as returned by start_application or update_profile. Schema: https://ukglobaltalentvisa.org/.well-known/profile.schema.json'
                client:
                  type: string
                  description: Optional calling client (e.g. "claude", "chatgpt", "gemini", "perplexity", "other"). Lower-cased, [a-z0-9-] only, max 24 chars; used for the referral tag mcp-<client>.
              required:
              - profile
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/get_document_checklist:
    post:
      operationId: get_document_checklist
      summary: Get the structured document checklist for a route
      description: Returns the per-route document checklist (name, why needed, where to get it, stage, condition, source URL). Optionally pass a profile@1 object to mark which dependants' documents apply.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                route:
                  type: string
                  enum:
                  - tech
                  - academia
                  - arts
                  description: 'Route: tech = Digital Technology (Tech Nation), academia = Academia & Research, arts = Arts & Culture. May be omitted if profile.field is known.'
                profile:
                  type: object
                  description: Optional profile@1 object as returned by start_application or update_profile. Used for the Talent/Promise stage and dependants.
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/get_timeline:
    post:
      operationId: get_timeline
      summary: Get costs and a dated planning timeline (JSON or .ics)
      description: Returns cost line items and dated stage ranges with sources for a start date. format ics returns RFC 5545 calendar text. Invalid input (for example a malformed start_date) returns a JSON-RPC -32602 error.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                route:
                  type: string
                  enum:
                  - tech
                  - academia
                  - arts
                start_date:
                  type: string
                  description: Planned Stage 1 submission date, YYYY-MM-DD, between 2024-01-01 and 2035-12-31.
                priority:
                  type: boolean
                  default: false
                  description: Paid priority service. Applied for tech and academia only.
                dependants:
                  type: object
                  description: 'Applicants: adults 1-2 including the main applicant (default 1), children 0-6 (default 0).'
                  properties:
                    adults:
                      type: integer
                      minimum: 1
                      maximum: 2
                    children:
                      type: integer
                      minimum: 0
                      maximum: 6
                years:
                  type: integer
                  minimum: 1
                  maximum: 5
                  default: 5
                  description: Visa length in years, for the Immigration Health Surcharge. Default 5.
                apply_from:
                  type: string
                  enum:
                  - outside
                  - inside
                  default: outside
                  description: Where Stage 2 is filed from. Default outside the UK.
                format:
                  type: string
                  enum:
                  - json
                  - ics
                  default: json
                  description: json (default) or ics (iCalendar text).
              required:
              - route
              - start_date
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/generate_personal_statement:
    post:
      operationId: generate_personal_statement
      summary: Draft a Global Talent personal statement
      description: Drafts a UK Global Talent Visa personal statement (~800-1000 words) from a CV summary and chosen route, mapped to the four endorsement criteria. Free and anonymous; rate-limited to 3/day per IP.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - cv_summary
              properties:
                cv_summary:
                  type: string
                  description: The applicant's CV text or career summary. The more specific (named roles, awards, metrics), the stronger the draft.
                route:
                  type: string
                  enum:
                  - tech
                  - academia
                  - arts
                  description: Endorsement route. Defaults to "tech" if omitted.
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '429':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/random_success_story:
    post:
      operationId: random_success_story
      summary: Return a public-record success story
      description: Returns one public-record UK Global Talent Visa success story (name, role, route, endorsement year, paraphrased bio) sourced from Tech Nation's published profiles.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties: {}
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/criterion_breakdown:
    post:
      operationId: criterion_breakdown
      summary: Break down the endorsement criteria
      description: 'Explains one or all four UK Global Talent endorsement criteria (C1 Recognition, C2 Innovation, C3 Impact, C4 Contribution): what reviewers want, the evidence that works, and the common mistake for each. Pass an optional profile for a tailored read. Free and anonymous; rate-limited to 25/day per IP.'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                criterion:
                  type: string
                  enum:
                  - all
                  - C1
                  - C2
                  - C3
                  - C4
                  - recognition
                  - innovation
                  - impact
                  - contribution
                  default: all
                  description: Which criterion to break down. Defaults to "all".
                route:
                  type: string
                  enum:
                  - tech
                  - academia
                  - arts
                  default: tech
                  description: Endorsement route to frame the analysis. Defaults to "tech".
                profile:
                  type: string
                  description: Optional summary of the applicant's background and evidence for a tailored read.
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '429':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
  /tools/compare_my_chances:
    post:
      operationId: compare_my_chances
      summary: Assess chances and get an action plan
      description: Assesses how a draft UK Global Talent profile maps to the four criteria and returns a candid readiness verdict, per-criterion grades, the single biggest gap, and a prioritised list of concrete next steps. More verbose and action-oriented than score_draft. Free and anonymous; rate-limited to 15/day per IP.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - form_data
              properties:
                form_data:
                  type: object
                  description: 'The applicant''s profile. Include any of: fullName, cvText, awards, publications, patents, mediaRecognition, otherAchievements, supportingDocuments, references.'
                  additionalProperties: true
                route:
                  type: string
                  enum:
                  - tech
                  - academia
                  - arts
                  default: tech
                  description: Endorsement route to assess against. Defaults to "tech".
      responses:
        '200':
          $ref: '#/components/responses/ToolResult'
        '400':
          $ref: '#/components/responses/ToolError'
        '429':
          $ref: '#/components/responses/ToolError'
        '502':
          $ref: '#/components/responses/ToolError'
      tags:
      - Tools
    servers:
    - url: https://ukglobaltalentvisa.org/mcp/rest
      description: Production REST bridge — wraps each call in a JSON-RPC tools/call envelope and forwards to the MCP backend.
components:
  schemas:
    ToolError:
      type: object
      required:
      - error
      properties:
        error:
          type: string
    ToolResult:
      type: object
      required:
      - text
      properties:
        text:
          type: string
          description: Markdown body — pass straight through to the user.
        isError:
          type: boolean
          description: True when the backend returned a recoverable tool error (e.g. unknown route_slug). The status code stays 200 so ChatGPT can still surface the message to the user.
  responses:
    ToolResult:
      description: Markdown-formatted tool result, flattened from the MCP `content` array.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ToolResult'
    ToolError:
      description: Tool error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ToolError'
x-refined-from:
- mcp-openapi.json
- ukglobaltalentvisa-org-mcp-openapi.json