Home · Agents · Blueprints · Check a UK supplier

Agent blueprint: check a UK supplier before the first order

The job

A buyer is about to open an account with a British company they have only met by email. The agent finds the registered company behind the trading name, reads its register entry, and says which of the details on the quote or invoice agree with it.

Run it when a new supplier sends bank details, terms or a first invoice, and again if the name on a later invoice changes. Do not run it for a sole trader or an ordinary partnership: they are not entered in this register, so an empty search says nothing about them.

Tool calls, in order

1. GET /v1/companies/search

Invoices carry trading names, and trading names are shared. The search turns the name into candidate registrations, each with its own company number, so every later check is tied to one legal body.

What to read in the answer. How many rows came back and how they differ: number, status, town and incorporation date. If the quote already prints a company number, match on that and ignore the order of the results.

curl "https://api.foxapis.com/v1/companies/search?q=Tesco+PLC" \
  -H "Authorization: Bearer YOUR_KEY"
A real answer (saved 2026-11-22)
[
 {
  "company_number": "00445790",
  "company_name": "TESCO PLC",
  "company_status": "active",
  "company_type": "Public Limited Company",
  "incorporation_date": "1947-11-27",
  "reg_address_locality": "WELWYN GARDEN CITY",
  "sic_codes": [
   "47110"
  ]
 }
]

2. GET /v1/companies/{company_number}

Once one number is chosen, this reads the entry for that number alone: whether the company is shown as active, when it was formed, where it is registered, what activity codes it filed and who is recorded as controlling it.

What to read in the answer. company_status first, then incorporation_date against how long the supplier says it has traded, then the registered town and the activity codes against what the quote says the business does.

curl "https://api.foxapis.com/v1/companies/00445790" \
  -H "Authorization: Bearer YOUR_KEY"
A real answer (saved 2026-11-22)

This answer lists no persons of significant control. Many listed companies are not required to keep that part of the register, so an empty list is not a finding about this company.

{
 "company_number": "00445790",
 "company_name": "TESCO PLC",
 "company_status": "active",
 "company_type": "Public Limited Company",
 "incorporation_date": "1947-11-27",
 "reg_address_locality": "WELWYN GARDEN CITY",
 "sic_codes": [
  "47110"
 ],
 "persons_of_significant_control": []
}

Instruction to paste into your agent

You check a UK supplier before a first order. Search the company register for the supplier name. If one registration clearly matches the company number on their paperwork, read its profile. If not, stop and list the candidates with number, status, town and date formed. Compare status, date formed, town and activity with what the supplier told us, and list agreements and differences separately. Do not rate the supplier. End with the questions a person should ask them.

Rules the agent should follow

What the agent hands back

One short note: the registration the agent matched and why, a two column list of what agrees and what differs from the supplier's paperwork, and the questions still open.

What a person still does

A person confirms the bank details by a separate route, asks the supplier about each difference, and decides the credit limit and payment terms.

Limits

Cost of one run

Total for one pass, taking one record or lookup from each call above, in credits: 9. Repeating a call costs it again. What a credit costs · Get a free key

MCP setup

The FoxAPIs MCP server does not offer these calls yet, so give your agent the function definitions below and have it send the requests over HTTP.

Function definitions (plain JSON)

Each entry names the function, its arguments and the HTTP request it stands for. Your code sends the request with the header Authorization: Bearer YOUR_KEY and returns the JSON to the agent.

[
  {
    "name": "companies_search",
    "description": "Invoices carry trading names, and trading names are shared. The search turns the name into candidate registrations, each with its own company number, so every later check is tied to one legal body.",
    "parameters": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string"
        }
      },
      "required": [
        "q"
      ]
    },
    "http": {
      "method": "GET",
      "url": "https://api.foxapis.com/v1/companies/search"
    }
  },
  {
    "name": "companies_company_number_",
    "description": "Once one number is chosen, this reads the entry for that number alone: whether the company is shown as active, when it was formed, where it is registered, what activity codes it filed and who is recorded as controlling it.",
    "parameters": {
      "type": "object",
      "properties": {
        "company_number": {
          "type": "string"
        }
      },
      "required": [
        "company_number"
      ]
    },
    "http": {
      "method": "GET",
      "url": "https://api.foxapis.com/v1/companies/{company_number}"
    }
  }
]

Pages for these calls

More blueprints

Triage posts for buying intent · Confirm a work address · Contractor check agent · Investor research agent · all of them