US compliance and books health

v1.0.0
com.medianfi/compliance Checked 3 days ago Published 3 months ago

US company filing obligations, plus a 25-check bookkeeping diagnostic.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_company_overview Get company overview

Who Median is, what it does, who it is for, how onboarding works, and how to get in touch or book an intro call.

get_pricing Get pricing

Median’s accounting plans, starting prices for tax, Controller and fractional CFO services, and custom quotes for Scale accounting and finance systems.

list_services List services

List Median’s accounting, controller, tax, finance systems, and fractional CFO support through Median, with a summary and page link for each.

list_blog_posts List blog posts

List published articles from the Median blog, newest first. Optionally filter by category or a search term matched against the title.

ParameterTypeDescription
categorystringFilter to one category slug or name.
limitintegerHow many posts to return (default 20, max 50).
searchstringMatch against the post title.

get_blog_post Get blog post

Fetch the full text of one published Median blog post by its slug.

ParameterTypeDescription
slug *stringPost slug, e.g. 'how-to-switch-bookkeeping-services'.

get_confounders Get confounding questions

Refinement step, NOT the place to start: call list_compliance_obligations first, then call this to narrow what is still genuinely open. Returns the facts that flip an answer, such as whether an employer of record is the legal employer. Pass every fact you already know and it returns only what those facts leave unsettled. These are things for YOU to look up in the user's own documents. They are not a questionnaire to send the user.

ParameterTypeDescription
answeredobjectOnly for confounders with no matching fact field above (who-paid, prepaid-multi-year). For everything else pass the fact itself, e.g. payroll_model: 'eor', not answered: { 'payroll-model': 'eor' }.
answersobjectAnswers to the yes/no threshold questions this tool asks, keyed by the threshold id shown in the question, e.g. { "foreign-accounts-over-10k": false, "ny-sales-over-500k": false }. Without this the sa…
company_namestringOptional, and the only identifying thing this tool records. Median stores it to see which companies use this tool and may follow up. It changes nothing about the answer, so omit it if the user has not…
contractor_statesarrayStates where 1099 contractors work.
employee_statesarrayStates where W-2 employees work.
entity_typestringLegal entity type.
extensions_filedobjectWhether a tax extension was filed, keyed 'US' for federal and by state code, e.g. { US: true, NY: false }. OMIT a key you are unsure about: no deadline is asserted for an unknown key, because assuming…
fiscal_year_endstringMM-DD, e.g. '12-31'. Defaults to 12-31.
foreign_ownedWhether any non-US person owns 25% or more. Leave unset if genuinely unknown.
formation_datestringISO date the entity was formed.
formation_platformstringDecides whether a bundled first-year registered agent explains a missing fee.
formation_statestringTwo-letter state of formation, e.g. 'DE'.
operating_statesarrayStates where the company operates.
payroll_modelstringCritical. An employer of record holds state registrations under its own entity, so the answer flips entirely on this.
payroll_providerstringThe provider's name only, e.g. 'Deel', 'Gusto', 'Rippling'. Not account numbers, not employee details, not anything else.
presence_typeobjectPer-state presence, e.g. { NY: 'virtual-mailbox' }.
registered_inobjectWhether the company is already registered to do business in a state, e.g. { NY: false }. Drives obligations that only begin at registration.
revenue_bandstringGross annual revenue as a band, never an exact figure: 'pre-revenue', 'under-250k', '250k-1m', '1m-5m' or 'over-5m'. Drives revenue-scaled thresholds such as state franchise tax minimums and economic…
sales_statesarrayStates with customers.
sells_saasWhether the product is SaaS. New York taxes SaaS as prewritten software.
tax_yearintegerTax year under review. Defaults to last calendar year.

list_compliance_obligations List compliance obligations

START HERE. Given whatever you know about a company, return the federal and state compliance obligations that apply, ordered by urgency with overdue items first, plus the specific questions that unblock the rest. Call it immediately with partial facts rather than interviewing the user first: it is designed for incomplete input, and every fact you are missing comes back as one precise question instead of the dozen generic ones you would otherwise ask. Then answer those and call it again. Defaults to a short actionable view; relay it roughly as written rather than expanding it into an essay, and…

ParameterTypeDescription
answersobjectAnswers to the yes/no threshold questions this tool asks, keyed by the threshold id shown in the question, e.g. { "foreign-accounts-over-10k": false, "ny-sales-over-500k": false }. Without this the sa…
company_namestringOptional, and the only identifying thing this tool records. Median stores it to see which companies use this tool and may follow up. It changes nothing about the answer, so omit it if the user has not…
contractor_statesarrayStates where 1099 contractors work.
detailstringDefault 'brief': what applies, when it is due, and the questions, with no evidence or remediation detail. Around a third the length of 'summary' and it is what a founder can actually act on. 'summary'…
employee_statesarrayStates where W-2 employees work.
entity_typestringLegal entity type.
extensions_filedobjectWhether a tax extension was filed, keyed 'US' for federal and by state code, e.g. { US: true, NY: false }. OMIT a key you are unsure about: no deadline is asserted for an unknown key, because assuming…
fiscal_year_endstringMM-DD, e.g. '12-31'. Defaults to 12-31.
foreign_ownedWhether any non-US person owns 25% or more. Leave unset if genuinely unknown.
formation_datestringISO date the entity was formed.
formation_platformstringDecides whether a bundled first-year registered agent explains a missing fee.
formation_statestringTwo-letter state of formation, e.g. 'DE'.
operating_statesarrayStates where the company operates.
payroll_modelstringCritical. An employer of record holds state registrations under its own entity, so the answer flips entirely on this.
payroll_providerstringThe provider's name only, e.g. 'Deel', 'Gusto', 'Rippling'. Not account numbers, not employee details, not anything else.
presence_typeobjectPer-state presence, e.g. { NY: 'virtual-mailbox' }.
registered_inobjectWhether the company is already registered to do business in a state, e.g. { NY: false }. Drives obligations that only begin at registration.
revenue_bandstringGross annual revenue as a band, never an exact figure: 'pre-revenue', 'under-250k', '250k-1m', '1m-5m' or 'over-5m'. Drives revenue-scaled thresholds such as state franchise tax minimums and economic…
sales_statesarrayStates with customers.
sells_saasWhether the product is SaaS. New York taxes SaaS as prewritten software.
tax_yearintegerTax year under review. Defaults to last calendar year.

get_evidence_recipe Get evidence recipe

For one obligation, return exactly how to prove it: which sources settle the question, which are only corroborating, what each state's public registry does and does not expose, and the innocent explanations for missing evidence. Use this before concluding anything is missing.

ParameterTypeDescription
obligation_id *stringObligation id from list_compliance_obligations.

explain_obligation Explain one obligation

Plain-English detail on a single obligation: what it is, why it exists, the deadline, the cost, the penalty, the exact remediation steps, and the government source.

ParameterTypeDescription
obligation_id *stringObligation id, e.g. 'de-registered-agent'.

list_books_checks List books health checks

START HERE for a books health check. Given whatever you know about a business, return the bookkeeping checks that apply to it, grouped by dimension, each with where to look, the innocent explanations to rule out first, and what it costs if it is real. Call it immediately with partial facts rather than interviewing the user first: unknown facts keep checks in the list rather than dropping them, so nothing is silently skipped. Cash-basis businesses correctly get a shorter list. This never says whether books are correct, only what to look at.

ParameterTypeDescription
basisstringCash or accrual, printed at the top of most profit and loss reports. This matters more than anything else here: several revenue checks do not apply on a cash basis.
bills_aheadbooleanWhether anything is billed ahead of delivery: subscriptions, retainers, annual plans.
charges_sales_taxbooleanWhether sales tax is charged anywhere.
company_namestringOptional, and the only identifying thing this tool records. Median stores it to see which businesses use this tool and may follow up. It changes nothing about the answer, so omit it if the user has no…
has_contractorsbooleanWhether 1099 contractors are paid.
has_raisedbooleanWhether the business has raised on a SAFE, note or priced round, or taken a loan.
ledgerstringWhich ledger the books live in. Visible in the header of any export.
needs_segment_reportingbooleanWhether any part of the business needs separate reporting: locations, programs, product lines, more than one entity.
payroll_modelstringHow people are paid.
processorsarrayPayment processors that hold a balance before paying out, e.g. ['stripe','paypal']. Names only. Drives the single most-missed check.

explain_books_check Explain one books check

Full detail on a single books health check: what it is, exactly where to look in the ledger, every innocent explanation to rule out before concluding anything, what it costs if it is real, what fixing it involves, and whether it is inside what Median does.

ParameterTypeDescription
check_id *stringCheck id from list_books_checks, e.g. 'rec-processor-balance-unreconciled'.

score_books_health Score books health

Score a books health check from the statuses you actually evidenced. Returns the weighted score, the band, a per-dimension breakdown and the findings ranked worst first. Two rules a plain average does not give you: a confirmed critical caps the grade, and the band is WITHHELD entirely when too little was evidenced, because a flattering number off three checks is the part people quote. Report the withheld state rather than supplying a band yourself.

ParameterTypeDescription
results *arrayOne entry per check you actually worked. Send check ids and statuses only: never figures, balances, account numbers or names.
basisstringCash or accrual, printed at the top of most profit and loss reports. This matters more than anything else here: several revenue checks do not apply on a cash basis.
bills_aheadbooleanWhether anything is billed ahead of delivery: subscriptions, retainers, annual plans.
charges_sales_taxbooleanWhether sales tax is charged anywhere.
company_namestringOptional, and the only identifying thing this tool records. Median stores it to see which businesses use this tool and may follow up. It changes nothing about the answer, so omit it if the user has no…
has_contractorsbooleanWhether 1099 contractors are paid.
has_raisedbooleanWhether the business has raised on a SAFE, note or priced round, or taken a loan.
ledgerstringWhich ledger the books live in. Visible in the header of any export.
needs_segment_reportingbooleanWhether any part of the business needs separate reporting: locations, programs, product lines, more than one entity.
payroll_modelstringHow people are paid.
processorsarrayPayment processors that hold a balance before paying out, e.g. ['stripe','paypal']. Names only. Drives the single most-missed check.