mcp

v0.9.0
co.policyforge/mcp Checked 4 days ago Published 1 month ago

Generate, audit, and maintain legal policies that match what your code actually does.

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

generate_policy Generate policy

Generates a legal policy (privacy policy, terms of service, cookie policy, refund policy, EULA or disclaimer) for a business, saves it to the PolicyForge account, and returns the Markdown content and a hosted URL. Uses one document from the account's quota. The optional fields describe what the product does (data collected, third-party services, payments, analytics, cookies), and the document is more accurate when they reflect the product's actual code and configuration. Company facts such as the legal name, contact email, physical address and governing law come from the user. For terms_of_ser…

ParameterTypeDescription
business_type *stringThe company's business category.
company_name *stringLegal/display name of the company.
contact_email *stringPublic contact email for legal inquiries.
jurisdiction *stringTarget legal framework(s). One or more of: gdpr, ccpa, pipeda, lgpd, us, eu, ca, uk, au, br, global, Europe, Canada, United Kingdom, Australia, Brazil, India, Singapore, Japan, Mexico. Combine multipl…
type *stringThe kind of policy to generate.
analyticsbooleanDoes it use analytics?
children_databooleanDoes it knowingly collect data from children?
consent_trackingbooleanEnable the "I agree" consent banner on the hosted page (default false).
cookiesbooleanDoes it use cookies? Defaults to true for most websites.
data_collectionarrayCategories of personal data collected, e.g. ["email","name","usage"].
data_retentionstringHow long data is kept, e.g. "24 months".
dpo_emailstringData Protection Officer email, if any. Also sets hasDPO.
governing_lawstringGoverning law jurisdiction, e.g. "State of California, USA".
hosting_enabledbooleanHost the policy at a public policyforge.co URL (default true).
marketingbooleanDoes it send marketing communications?
paymentsbooleanDoes it process payments?
physical_addressstringCompany physical address.
security_measuresarraySecurity controls, e.g. ["encryption at rest","MFA"].
sells_databooleanDoes it sell or share personal data?
service_descriptionstringShort description of what the product or service does.
stack_manifestobjectStructured summary of the services and data the product uses, e.g. {"analytics":["posthog"],"payments":["stripe"],"auth":["supabase"],"ai_features":["openai"],"cookies":["session"],"jurisdiction_signa…
table_of_contentsbooleanAdd a linked table of contents to the generated document. Requires a Pro plan.
target_audiencearrayAudience segments, e.g. ["businesses","consumers"].
third_party_integrationsarrayThird-party processors, e.g. ["Stripe","Google Analytics"].
user_accountsbooleanDoes the product have user accounts?
website_urlstringCompany website URL.

generate_baa Generate a HIPAA Business Associate Agreement

Generates a HIPAA Business Associate Agreement (BAA) between a covered entity and a vendor that handles Protected Health Information, built from the clauses required by 45 CFR 164.504(e) and validated clause by clause. A BAA is a binding two-party contract rather than a published policy: it needs both parties' legal names and addresses, an effective date and a governing law state, and it is never hosted at a public URL. Requires a Pro plan. The result is a draft for counsel to review, not legal advice. If it is not finished within about 45 seconds, the tool returns a job ID instead of the docu…

ParameterTypeDescription
acknowledge_contract *booleanMust be true. A Business Associate Agreement is a binding contract, not legal advice, and should be reviewed by counsel before signing.
baa_business_associate_address *stringAddress of the business associate.
baa_business_associate_name *stringLegal name of the business associate.
baa_covered_entity_address *stringAddress of the covered entity.
baa_covered_entity_name *stringLegal name of the covered entity.
baa_direction *stringcovered_entity_to_vendor (you are the practice) or business_associate_to_client (you are the vendor).
baa_effective_date *stringYYYY-MM-DD. The date the parties agree on, not today's date.
baa_governing_law_state *stringGoverning law state. Stricter state health privacy law is layered on top of HIPAA.
baa_permitted_uses *arrayPermitted uses and disclosures per 45 CFR 164.504(e)(2)(i). Anything not listed is not permitted.
baa_phi_types *arrayCategories of PHI involved. Including "Substance use treatment records (42 CFR Part 2)" adds a Part 2 addendum.
baa_services_description *stringThe services that bring the associate into contact with PHI.
company_name *stringLegal name of the user's own company.
contact_email *stringContact email for the agreement.
baa_breach_notification_daysintegerDays to report a breach after discovery. Default 30. 60 is the outer limit under 45 CFR 164.410.
baa_electronic_phibooleanDefault true. Adds the HIPAA Security Rule safeguard obligations.
baa_include_indemnificationbooleanIndemnification running from associate to covered entity.
baa_include_insurancebooleanPair with baa_insurance_amount.
baa_insurance_amountstringMinimum cyber liability coverage, e.g. "$1,000,000 per occurrence".
baa_return_or_destroystringWhat happens to PHI at termination.
baa_term_end_datestringYYYY-MM-DD. Required when baa_term_type is fixed_term.
baa_term_typestringDefault tied_to_services (runs with the underlying services agreement).
baa_uses_subcontractorsbooleanDefault false. True adds the subcontractor flow-down clause.

list_policies List policies

Lists the policies saved on this PolicyForge account, newest first, with optional filters by status and type.

ParameterTypeDescription
limitintegerMax results (1-100, default 20).
offsetintegerPagination offset.
sortBystringSort field (default updatedAt).
sortOrderstringSort direction (default desc).
statusstringFilter by status.
typestringFilter by policy type.

get_policy Get policy

Returns one policy by ID, including its status, hosted URL and full Markdown content.

ParameterTypeDescription
id *stringThe policy ID (UUID) returned by generate_policy or list_policies.

check_generation Check generation

Returns the state of a policy generation job: the finished document, the error if generation failed, or a note that it is still running. Takes the job ID that generate_policy, generate_baa or regenerate_policy returns when generation runs longer than about 45 seconds.

ParameterTypeDescription
job_id *stringThe job ID returned by the generation tool.

update_policy Update policy

Updates an existing policy in place. The policy ID, hosted URL and embeds stay the same, so links already published on a site keep working. Accepts small find-and-replace changes as `edits` or a complete revised document as `content`, and can also change the title, status, effective date, hosting and consent banner. The previous content is saved as a version first, so an update can be undone. Does not use generation quota.

ParameterTypeDescription
id *stringThe policy ID (UUID) to update.
consent_trackingbooleanEnable/disable the "I agree" consent banner on the hosted page.
contentstringFull replacement Markdown content: the complete document, not a diff. Cannot be combined with `edits`.
editsarraySmall changes applied to the current content in order, e.g. [{"find":"Paddle","replace":"Dodo Payments"}]. All edits must match or none are applied. Cannot be combined with `content`.
effective_datestringNew effective date, ISO format e.g. "2026-07-13".
hosting_enabledbooleanEnable/disable the public hosted page.
statusstringChange publication status. Only 'published' policies are served at the hosted URL.
titlestringNew policy title.

regenerate_policy Regenerate policy

Re-runs AI generation for an existing policy, using its stored business details merged with the changed fields provided. The policy ID and hosted URL stay the same, so published links keep working, and the previous content is saved as a version first. Suited to substantial changes such as new integrations, a new jurisdiction or a renamed company. Uses one document from the account's quota. If it is not finished within about 45 seconds, the tool returns a job ID instead of the document and the job keeps running.

ParameterTypeDescription
id *stringThe policy ID (UUID) to regenerate.
analyticsbooleanDoes it use analytics?
business_typestringChanged business category.
children_databooleanDoes it knowingly collect data from children?
company_namestringChanged company name.
contact_emailstringChanged contact email.
cookiesbooleanDoes it use cookies? Defaults to true for most websites.
data_collectionarrayCategories of personal data collected, e.g. ["email","name","usage"].
data_retentionstringHow long data is kept, e.g. "24 months".
dpo_emailstringData Protection Officer email, if any. Also sets hasDPO.
governing_lawstringGoverning law jurisdiction, e.g. "State of California, USA".
jurisdictionstringChanged legal framework(s), e.g. "gdpr,ccpa".
marketingbooleanDoes it send marketing communications?
paymentsbooleanDoes it process payments?
physical_addressstringCompany physical address.
security_measuresarraySecurity controls, e.g. ["encryption at rest","MFA"].
sells_databooleanDoes it sell or share personal data?
service_descriptionstringShort description of what the product or service does.
stack_manifestobjectStructured summary of the services and data the product uses, e.g. {"analytics":["posthog"],"payments":["stripe"],"auth":["supabase"],"ai_features":["openai"],"cookies":["session"],"jurisdiction_signa…
table_of_contentsbooleanAdd a linked table of contents to the generated document. Requires a Pro plan.
target_audiencearrayAudience segments, e.g. ["businesses","consumers"].
third_party_integrationsarrayThird-party processors, e.g. ["Stripe","Google Analytics"].
user_accountsbooleanDoes the product have user accounts?
website_urlstringCompany website URL.

audit_compliance Audit compliance

Compliance gap analysis. Compares a stack manifest (the services, cookies and personal data a product uses) with a saved policy and returns missing disclosures, overstated claims, missing policy types and recommendations. Without a policy_id, it reports which policies the stack needs and what they must cover. Does not use generation quota.

ParameterTypeDescription
manifest *objectSummary of the services, cookies and personal data the product uses, e.g. {"analytics":["posthog"],"payments":["stripe"],"ai_features":["openai"],"cookies":["session","_ph_*"],"jurisdiction_signals":[…
policy_idstringPolicy (UUID) to audit the manifest against. Omit to audit the manifest alone.

check_policy_freshness Check policy freshness

Compares a current stack manifest with the one stored when the policy was last generated or regenerated, and reports what changed in the stack, which shows whether the policy still matches the product. Works on the two manifests only: no AI call and no quota.

ParameterTypeDescription
current_manifest *objectThe product's current stack manifest, in the same format as stack_manifest.
id *stringThe policy ID (UUID) to check.

list_policy_versions List policy versions

Lists a policy's version history: a snapshot taken before every update, regeneration or restore, plus any auto-generated compliance update drafts, each with its version number.

ParameterTypeDescription
id *stringThe policy ID (UUID).

restore_policy_version Restore policy version

Restores a policy to an earlier version by version number. The current content is saved as a new version first, so a restore can itself be undone. The hosted URL does not change.

ParameterTypeDescription
id *stringThe policy ID (UUID).
version *integerThe version_number to restore (from list_policy_versions).

delete_policy Delete policy

Permanently deletes a policy. Its hosted URL and any embeds of it stop working immediately, and the deletion cannot be undone.

ParameterTypeDescription
id *stringThe policy ID (UUID) to delete.

get_usage Get usage & quota

Returns the account's plan and its remaining document generation quota.

get_disclosure_checklist Get disclosure checklist

Returns PolicyForge's disclosure checklist: the SDKs, scripts and code patterns that legally require disclosure in a privacy or cookie policy, and how each one maps to generate_policy's fields and the stack manifest format.

get_integration_guide Get integration guide

Returns snippets for adding a policy to a website: the hosted link, an embed snippet, and where to place them in the chosen framework (Next.js, React, WordPress or plain HTML).

ParameterTypeDescription
id *stringThe policy ID (UUID) to integrate.
frameworkstringThe site's framework, for tailored snippets (default: html).

list_policy_types List policy types

Lists the policy types, business types and jurisdictions that generate_policy accepts.