mcp
v0.9.0Generate, 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…
| Parameter | Type | Description |
|---|---|---|
business_type * | string | The company's business category. |
company_name * | string | Legal/display name of the company. |
contact_email * | string | Public contact email for legal inquiries. |
jurisdiction * | string | Target 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 * | string | The kind of policy to generate. |
analytics | boolean | Does it use analytics? |
children_data | boolean | Does it knowingly collect data from children? |
consent_tracking | boolean | Enable the "I agree" consent banner on the hosted page (default false). |
cookies | boolean | Does it use cookies? Defaults to true for most websites. |
data_collection | array | Categories of personal data collected, e.g. ["email","name","usage"]. |
data_retention | string | How long data is kept, e.g. "24 months". |
dpo_email | string | Data Protection Officer email, if any. Also sets hasDPO. |
governing_law | string | Governing law jurisdiction, e.g. "State of California, USA". |
hosting_enabled | boolean | Host the policy at a public policyforge.co URL (default true). |
marketing | boolean | Does it send marketing communications? |
payments | boolean | Does it process payments? |
physical_address | string | Company physical address. |
security_measures | array | Security controls, e.g. ["encryption at rest","MFA"]. |
sells_data | boolean | Does it sell or share personal data? |
service_description | string | Short description of what the product or service does. |
stack_manifest | object | Structured 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_contents | boolean | Add a linked table of contents to the generated document. Requires a Pro plan. |
target_audience | array | Audience segments, e.g. ["businesses","consumers"]. |
third_party_integrations | array | Third-party processors, e.g. ["Stripe","Google Analytics"]. |
user_accounts | boolean | Does the product have user accounts? |
website_url | string | Company 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…
| Parameter | Type | Description |
|---|---|---|
acknowledge_contract * | boolean | Must 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 * | string | Address of the business associate. |
baa_business_associate_name * | string | Legal name of the business associate. |
baa_covered_entity_address * | string | Address of the covered entity. |
baa_covered_entity_name * | string | Legal name of the covered entity. |
baa_direction * | string | covered_entity_to_vendor (you are the practice) or business_associate_to_client (you are the vendor). |
baa_effective_date * | string | YYYY-MM-DD. The date the parties agree on, not today's date. |
baa_governing_law_state * | string | Governing law state. Stricter state health privacy law is layered on top of HIPAA. |
baa_permitted_uses * | array | Permitted uses and disclosures per 45 CFR 164.504(e)(2)(i). Anything not listed is not permitted. |
baa_phi_types * | array | Categories of PHI involved. Including "Substance use treatment records (42 CFR Part 2)" adds a Part 2 addendum. |
baa_services_description * | string | The services that bring the associate into contact with PHI. |
company_name * | string | Legal name of the user's own company. |
contact_email * | string | Contact email for the agreement. |
baa_breach_notification_days | integer | Days to report a breach after discovery. Default 30. 60 is the outer limit under 45 CFR 164.410. |
baa_electronic_phi | boolean | Default true. Adds the HIPAA Security Rule safeguard obligations. |
baa_include_indemnification | boolean | Indemnification running from associate to covered entity. |
baa_include_insurance | boolean | Pair with baa_insurance_amount. |
baa_insurance_amount | string | Minimum cyber liability coverage, e.g. "$1,000,000 per occurrence". |
baa_return_or_destroy | string | What happens to PHI at termination. |
baa_term_end_date | string | YYYY-MM-DD. Required when baa_term_type is fixed_term. |
baa_term_type | string | Default tied_to_services (runs with the underlying services agreement). |
baa_uses_subcontractors | boolean | Default 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max results (1-100, default 20). |
offset | integer | Pagination offset. |
sortBy | string | Sort field (default updatedAt). |
sortOrder | string | Sort direction (default desc). |
status | string | Filter by status. |
type | string | Filter by policy type. |
get_policy Get policy
Returns one policy by ID, including its status, hosted URL and full Markdown content.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The policy ID (UUID) to update. |
consent_tracking | boolean | Enable/disable the "I agree" consent banner on the hosted page. |
content | string | Full replacement Markdown content: the complete document, not a diff. Cannot be combined with `edits`. |
edits | array | Small 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_date | string | New effective date, ISO format e.g. "2026-07-13". |
hosting_enabled | boolean | Enable/disable the public hosted page. |
status | string | Change publication status. Only 'published' policies are served at the hosted URL. |
title | string | New 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The policy ID (UUID) to regenerate. |
analytics | boolean | Does it use analytics? |
business_type | string | Changed business category. |
children_data | boolean | Does it knowingly collect data from children? |
company_name | string | Changed company name. |
contact_email | string | Changed contact email. |
cookies | boolean | Does it use cookies? Defaults to true for most websites. |
data_collection | array | Categories of personal data collected, e.g. ["email","name","usage"]. |
data_retention | string | How long data is kept, e.g. "24 months". |
dpo_email | string | Data Protection Officer email, if any. Also sets hasDPO. |
governing_law | string | Governing law jurisdiction, e.g. "State of California, USA". |
jurisdiction | string | Changed legal framework(s), e.g. "gdpr,ccpa". |
marketing | boolean | Does it send marketing communications? |
payments | boolean | Does it process payments? |
physical_address | string | Company physical address. |
security_measures | array | Security controls, e.g. ["encryption at rest","MFA"]. |
sells_data | boolean | Does it sell or share personal data? |
service_description | string | Short description of what the product or service does. |
stack_manifest | object | Structured 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_contents | boolean | Add a linked table of contents to the generated document. Requires a Pro plan. |
target_audience | array | Audience segments, e.g. ["businesses","consumers"]. |
third_party_integrations | array | Third-party processors, e.g. ["Stripe","Google Analytics"]. |
user_accounts | boolean | Does the product have user accounts? |
website_url | string | Company 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.
| Parameter | Type | Description |
|---|---|---|
manifest * | object | Summary 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_id | string | Policy (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.
| Parameter | Type | Description |
|---|---|---|
current_manifest * | object | The product's current stack manifest, in the same format as stack_manifest. |
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The policy ID (UUID). |
version * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | The policy ID (UUID) to integrate. |
framework | string | The 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.