WeFile MCP by usefulapi

v1.9.1
io.usefulapi/wefile Checked 3 days ago Published 1 day ago

Create 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.

ParameterTypeDescription
limitintegerItems per page (default 10).
pageintegerPage number (default 1).
searchstringSearch by company name or number.
statusstringFilter 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.

ParameterTypeDescription
companyId *integerWeFile 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.

ParameterTypeDescription
companyNumber *stringThe 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.

ParameterTypeDescription
limitintegerItems per page (default 10).
pageintegerPage number (default 1).
searchstringSearch text.
statusstringFilter 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.

ParameterTypeDescription
filingId *integerWeFile 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.

ParameterTypeDescription
filingId *integerWeFile 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.

ParameterTypeDescription
filingId *integerWeFile 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.

ParameterTypeDescription
filingId *integerWeFile filing id (from wefile_create_filing or wefile_list_filings).
type *stringDocument type, as listed by wefile_list_documents.
subPeriodintegerSub-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.

ParameterTypeDescription
companyId *integerWeFile internal company id (from wefile_list_companies), not the Companies House number.
isDormant *booleantrue for a dormant company (no trading figures).
periodEnd *stringAccounting period end, YYYY-MM-DD.
periodStart *stringAccounting period start, YYYY-MM-DD.
amendmentOfFilingIdintegerThe WeFile filing id to amend. Leave out for an amendment of a return filed elsewhere.
associatedCompaniesintegerNumber of associated companies in the period. Changes the marginal relief limits.
charityStatusstringSet for a charity or CASC filing only.
directorNamestringFull name of the signing director.
includePnlInAccountsbooleanInclude the profit and loss account in the Companies House accounts.
isAmendmentbooleantrue to create an amendment.
numberOfEmployeesintegerAverage 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.

ParameterTypeDescription
filingId *integerWeFile filing id (from wefile_create_filing or wefile_list_filings).
accountTypestringmicro = FRS 105 micro-entity; full = FRS 102 small company.
associatedCompaniesinteger
balanceSheetDataobjectBalance sheet figures in whole pounds, from the API docs.
charityStatusnull for a non-charity filing.
credentialsDataobjectNon-secret fields: utrNumber, directorName, boardApprovalDate (DD/MM/YYYY), filingMode (agent) and agent fields. Do not send gatewayPassword or authCode here.
filingTypesobjectWhich submissions to make, for example { "ct600": true, "accounts": true }.
includePnlInAccountsboolean
isCloseCompanyboolean | nullfalse means no CT600A is filed.
isDormantbooleanMark the filing as dormant. Forces employees and associated companies to 0.
notesDataarrayCustom notes for the financial statements, up to 20.
numberOfEmployeesinteger
previousBalanceSheetDataobjectPrior period balance sheet, for comparatives.
previousProfitLossDataobjectPrior period profit and loss, for comparatives.
profitLossDataobjectProfit and loss figures in whole pounds: turnover, costOfRawMaterials, staffCosts, depreciation, otherCharges, interestPayable, interestIncome, and others from the API docs.
statusstringTarget status, for example in_progress. in_progress starts the payment step.
supplementaryPagesDataobjectCT600A 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.

ParameterTypeDescription
filingId *integerWeFile 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.

ParameterTypeDescription
filingId *integerWeFile filing id (from wefile_create_filing or wefile_list_filings).
target *string"hmrc" for CT600, "ch" for Companies House, "both" for both.
credentialsobjectOne-time credentials for this submission only.