WeFile MCP by usefulapi
v1.9.1Create and save CT600 filings, generate documents, submit to HMRC and check status in WeFile.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wefile_list_companies List companies
List the companies in your WeFile workspace, with their WeFile company id, name, Companies House number and filing count. Start here to find the companyId for other tools. WeFile API: GET /companies.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 10). |
page | integer | Page number (default 1). |
search | string | Search by company name or number. |
status | string | Filter by status. |
wefile_get_company_periods Get accounting periods
Get the accounting reference date and the accounting periods of one company, with the filed flags and due dates from HMRC and Companies House. Uses Companies House data. WeFile API: GET /company/periods.
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | WeFile internal company id (from wefile_list_companies), not the Companies House number. |
wefile_add_company Add company
Add a UK company to your WeFile workspace by its 8-character Companies House number. WeFile fills in the name and address from Companies House. WeFile API: POST /company/add.
| Parameter | Type | Description |
|---|---|---|
companyNumber * | string | The 8-character Companies House company number, for example 12345678. |
wefile_list_filings List filings
List the filings in your WeFile workspace: CT600 returns and Companies House accounts, with their status. WeFile API: GET /filings.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 10). |
page | integer | Page number (default 1). |
search | string | Search text. |
status | string | Filter by filing status, for example draft, in_progress, submitted, completed, requires_attention. |
wefile_get_filing_status Get filing status
Get the overall status of a filing and its submission history. WeFile polls HMRC and Companies House first, so the result shows the latest accept or reject. Use it after wefile_submit_filing. WeFile API: GET /filing/status.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
wefile_list_submissions List submissions
List the submissions made for a filing to HMRC and Companies House, with their status, HMRC IRmark and body hash. Does not poll the agencies; use wefile_get_filing_status for that. WeFile API: GET /filing/submissions.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
wefile_list_documents List documents
List the documents WeFile can generate for a filing (accounts, tax computation, CT600), with whether each is available now. WeFile stores no documents; generate them with wefile_generate_document. WeFile API: GET /filing/document/list.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
wefile_generate_document Generate document
Generate one filing document from the saved filing data. PDFs come back as base64 text and iXBRL as HTML. Results over 200,000 characters are cut and marked truncated. Filings over 12 months need subPeriod 1 or 2. WeFile API: GET /filing/document/generate.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
type * | string | Document type, as listed by wefile_list_documents. |
subPeriod | integer | Sub-period 1 or 2 for a filing over 12 months. Omit for a normal filing. |
wefile_create_filing Create filing
Create a draft CT600 and Companies House filing for one company and accounting period. Nothing is sent to HMRC or Companies House yet. For an amendment of a WeFile filing, set isAmendment and amendmentOfFilingId. For an amendment of a return filed elsewhere, set isAmendment only: the draft starts empty. WeFile API: POST /filing/create.
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | WeFile internal company id (from wefile_list_companies), not the Companies House number. |
isDormant * | boolean | true for a dormant company (no trading figures). |
periodEnd * | string | Accounting period end, YYYY-MM-DD. |
periodStart * | string | Accounting period start, YYYY-MM-DD. |
amendmentOfFilingId | integer | The WeFile filing id to amend. Leave out for an amendment of a return filed elsewhere. |
associatedCompanies | integer | Number of associated companies in the period. Changes the marginal relief limits. |
charityStatus | string | Set for a charity or CASC filing only. |
directorName | string | Full name of the signing director. |
includePnlInAccounts | boolean | Include the profit and loss account in the Companies House accounts. |
isAmendment | boolean | true to create an amendment. |
numberOfEmployees | integer | Average number of employees. |
wefile_save_filing Save filing
Save the figures and settings of a draft filing. Set profitLossData and balanceSheetData from the figures the user gives; WeFile computes the totals and the tax. Status in_progress starts the payment step. Send the gateway password and the Companies House code only to wefile_submit_filing. Required: filingTypes, before submit. WeFile API: POST /filing/save.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
accountType | string | micro = FRS 105 micro-entity; full = FRS 102 small company. |
associatedCompanies | integer | |
balanceSheetData | object | Balance sheet figures in whole pounds, from the API docs. |
charityStatus | null for a non-charity filing. | |
credentialsData | object | Non-secret fields: utrNumber, directorName, boardApprovalDate (DD/MM/YYYY), filingMode (agent) and agent fields. Do not send gatewayPassword or authCode here. |
filingTypes | object | Which submissions to make, for example { "ct600": true, "accounts": true }. |
includePnlInAccounts | boolean | |
isCloseCompany | boolean | null | false means no CT600A is filed. |
isDormant | boolean | Mark the filing as dormant. Forces employees and associated companies to 0. |
notesData | array | Custom notes for the financial statements, up to 20. |
numberOfEmployees | integer | |
previousBalanceSheetData | object | Prior period balance sheet, for comparatives. |
previousProfitLossData | object | Prior period profit and loss, for comparatives. |
profitLossData | object | Profit and loss figures in whole pounds: turnover, costOfRawMaterials, staffCosts, depreciation, otherCharges, interestPayable, interestIncome, and others from the API docs. |
status | string | Target status, for example in_progress. in_progress starts the payment step. |
supplementaryPagesData | object | CT600A and CT600E schedules, from the API docs. |
wefile_delete_filing_credentials Delete stored credentials
Remove the stored HMRC gateway id, gateway password and Companies House code from a filing. Other fields stay. Refused while a submission is in flight. WeFile API: POST /filing/credentials/delete.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
wefile_submit_filing Submit filing
Send a filing to HMRC, Companies House or both. A live key (wf_live_) files a real return, so confirm the figures first; try a test key (wf_test_) before a live one. Pass the gateway credentials here for this call only: WeFile uses them once and does not store them. Check the result with wefile_get_filing_status. WeFile API: POST /filing/submit.
| Parameter | Type | Description |
|---|---|---|
filingId * | integer | WeFile filing id (from wefile_create_filing or wefile_list_filings). |
target * | string | "hmrc" for CT600, "ch" for Companies House, "both" for both. |
credentials | object | One-time credentials for this submission only. |