formfurrow

v0.1.0
io.github.CloudCorpRecords/formfurrow Checked 2 days ago Published 29 days ago

Run a form backend end to end: teams, clients, projects, forms, submissions, snippets, webhooks.

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

list_teams List teams

Use to see workspaces this token can act on. A team-scoped frw_ token returns that team only. An operator token or an MCP OAuth login returns every team you belong to — pass team_id on list_clients, create_client, and bootstrap_site. Creating another workspace is dashboard-only after signing in and requires a yearly plan; free accounts stay on one team. Do not use this to list clients — call list_clients.

update_team Update team

Use to rename a team. Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Do not use this to create another workspace — that is dashboard-only and requires yearly. For plan, usage, retention, and branding, call get_account / update_account. Do not use this to change clients or projects.

ParameterTypeDescription
name *stringNew team (workspace) display name.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

get_account Get account

Use to read the team's plan, usage this month, limits, expansion_packs, retention_days, branding, and AI spam filter (ai.typesafe_key_set, ai.notify_suspected_spam). The TypeSafe key itself is never returned. Plans are capacity, not a feature ladder. Free: one workspace, 100 clean submissions/month pooled on the team, 3 active (non-archived) projects, 30-day submission retention, and email.footer_mode / branding.mode stay furrow. Yearly ($199/year): extra workspaces, 10,000 submissions/month, unlimited projects, 730-day retention, branding.mode furrow | off | agency. Expansion packs are $99/ye…

ParameterTypeDescription
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

update_account Update account

Use to rename the workspace, set branding, or configure the AI spam filter. Pass ai.typesafe_api_key to save this team's TypeSafe key (null clears it; the key is write-only). ai.notify_suspected_spam (default true) emails notify addresses with a Potential spam label when Jev flags a submission; no webhook is sent either way. Heuristic spam stays silent. Free accounts cannot set branding.mode or email.footer_mode to anything but furrow — those writes are ignored. Yearly may set branding.mode to furrow, off, or agency (name + optional link + optional logo; Furrow keeps the layout, no raw HTML)…

ParameterTypeDescription
aiobjectAI spam filter. Off until this team saves its own TypeSafe key. One Jev call per heuristics-clean submission.
brandingobjectAccount-wide branding for notification emails and hosted pages.
namestringNew workspace display name.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

list_clients List clients

Use to browse clients (companies). Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Do not use to list websites — call list_projects with client_id. Archived clients are hidden unless status=all or archived.

ParameterTypeDescription
cursorstringOpaque cursor from the previous page's next_cursor.
limitintegerPage size, max 100.
statusstringFilter by archive state. Defaults to active.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

get_client Get client

Use to inspect one client. Do not use to list that client's sites — call list_projects with client_id.

ParameterTypeDescription
client_id *stringClient id from list_clients or create_client.

create_client Create client

Use to add a client (company) by slug. Idempotent on slug unless strict is true. Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Prefer bootstrap_site when also creating a website and forms. Do not put Turnstile or webhooks on a client — those live on the project.

ParameterTypeDescription
name *stringClient (company) display name.
slug *stringLowercase hyphenated identifier, unique per team. Used for idempotent re-runs.
strictbooleanWhen true, fail if the slug already exists instead of returning the existing record.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

update_client Update client

Use to rename a client. Do not use this to change domains, Turnstile, or webhooks — call update_project.

ParameterTypeDescription
client_id *stringClient id from list_clients or create_client.
namestringNew client display name.

archive_client Archive client

Use to archive a client. Do not use this as a hard delete. There is no unarchive tool in v1.

ParameterTypeDescription
client_id *stringClient id from list_clients or create_client.

list_projects List projects

Use to browse websites. Pass client_id to list one client's sites (team is inferred). Without client_id, Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Do not use to read one project's settings — call get_project. Archived projects are hidden unless status=all or archived.

ParameterTypeDescription
client_idstringOnly projects under this client.
cursorstringOpaque cursor from the previous page's next_cursor.
limitintegerPage size, max 100.
statusstringFilter by archive state. Defaults to active.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

get_project Get project

Use to inspect one website's settings, domains, webhook URL, email templates, upload policy, plan, usage this month, limits, retention_days, and branding. Returns stored values plus resolved.email. Secrets are never returned. Plans are capacity, not a feature ladder. Free: one workspace, 100 clean submissions/month pooled on the team, 3 active (non-archived) projects, 30-day submission retention, and email.footer_mode / branding.mode stay furrow. Yearly ($199/year): extra workspaces, 10,000 submissions/month, unlimited projects, 730-day retention, branding.mode furrow | off | agency. Expansion…

ParameterTypeDescription
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.

list_forms List forms

Use to list forms. Pass project_id for one website or client_id for one company (team is inferred). Otherwise Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Do not use to read resolved inheritance — call get_form.

ParameterTypeDescription
client_idstringOnly forms under this client's projects.
cursorstringOpaque cursor from the previous page's next_cursor.
limitintegerPage size, max 100.
project_idstringOnly forms in this project.
statusstringFilter by archive state. Defaults to active.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

get_form Get form

Use to read a form plus resolved and inherited settings, including resolved.email and resolved.uploads. files_url is the private inbox folder for this form under the project inbox (do not put it in a public snippet). Turnstile always inherits from the project (inherited.turnstile is true). Form webhook_url_override is nullable; null means inherit the project webhook. Forms may override email.subject and email.intro only. Do not use to generate embed code — call get_snippet.

ParameterTypeDescription
form_id *stringForm id from list_forms, create_form, or bootstrap_site.

list_submissions List submissions

Use to inspect recent posts. Available on free and yearly. Pass project_id or form_id to infer the team; omit both and Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Free teams prune submissions after 30 days; yearly after 730 days. Do not use to read a single submission — call get_submission.

ParameterTypeDescription
cursorstringOpaque cursor from the previous page's next_cursor.
form_idstringOnly submissions to this form.
limitintegerPage size, max 100.
project_idstringOnly submissions in this project.
sincestringISO 8601 timestamp; only submissions created after this instant.
spamstringWhich submissions to return. Defaults to clean.
team_idstringTeam id from list_teams. Required for operator tokens and OAuth logins; team-scoped frw_ tokens may omit it.

get_submission Get submission

Use to read one stored submission by id, including file metadata and files_url (the form inbox). Do not use this for live submit tests — POST to /s/:publicKey instead. Do not expect signed bucket URLs — download from the inbox.

ParameterTypeDescription
submission_id *stringSubmission id from list_submissions or a webhook payload.

get_snippet Get form snippet

Use after the form exists to get copy-paste html, astro, or next code that posts to /s/:publicKey. Do not invent a submit URL — this tool returns it. Snippets are single-value inputs; write checkbox groups and multi-selects yourself. Checkbox groups, select multiple, and other multi-value HTML fields must use a [] suffix on the name (name="services[]") or only the last checked value is stored. Put services[] on field_contract.name too. JSON/fetch should send a real array without brackets ({ "services": ["a", "b"] }) and must not use Object.fromEntries(formData) — use formData.getAll("servi…

ParameterTypeDescription
form_id *stringForm id from list_forms, create_form, or bootstrap_site.
framework *stringSnippet flavor: html (plain form), astro (component), or next (React client component).

create_project Create project

Use to add one website under an existing client_id. Idempotent on slug unless strict is true. Free accounts are limited to 3 active (non-archived) projects; yearly is unlimited. If create_project returns plan_limit, call create_upgrade_link and hand the human the Stripe URL. Prefer bootstrap_site when the client does not exist yet. Optional email sets notification templates (subject, from_name, intro, footer_mode, include_meta). Free accounts cannot set footer_mode off. Set uploads_enabled on the project to accept files. Email templates support {{project.name}}, {{project.slug}}, {{form.name}}…

ParameterTypeDescription
client_id *stringClient id from list_clients or create_client.
name *stringProject (website) display name.
slug *stringLowercase hyphenated identifier, unique per client. Used for idempotent re-runs.
allowed_domainsarrayHostnames allowed to post to this project's forms (example.com, www.example.com). Empty accepts any origin.
default_redirect_urlWhere classic HTML posts redirect after success. Null returns JSON/inline success instead.
emailobjectNotification email template for the project: subject, from_name, intro, footer_mode, include_meta.
from_nameLegacy From display name. Prefer email.from_name.
honeypot_fieldstringName of the hidden honeypot input the snippet emits. Defaults to _gotcha.
notify_emailsarrayAddresses that receive each clean submission (max 10). Inherited by every form.
rate_limit_per_ipintegerMax submissions per IP within rate_limit_window_s.
rate_limit_window_sintegerRate-limit window in seconds (max 86400).
require_turnstilebooleanReject submissions that lack a valid Turnstile token.
strictbooleanWhen true, fail if the slug already exists instead of returning the existing record.
turnstile_secretCloudflare Turnstile secret used to verify tokens server-side. Null removes it.
turnstile_site_keyCloudflare Turnstile site key for the frontend widget. Null removes it.
upload_allowed_typesarrayAllowed upload MIME types, e.g. application/pdf or image/*.
upload_max_file_bytesintegerMax bytes per file (up to 25 MB).
upload_max_filesintegerMax files per submission (up to 20).
upload_max_total_bytesintegerMax total upload bytes per submission (up to 50 MB).
uploads_enabledbooleanAccept multipart file fields on this project's forms.
webhook_secretHMAC-SHA256 secret for the X-Furrow-Signature header. Omit to have one generated and returned.
webhook_urlPublic https endpoint that receives a signed JSON POST per clean submission. Null disables it.

update_project Update project

Use to patch website settings. Nested email sets notification templates: email.subject, email.from_name, email.intro, email.footer_mode (furrow | minimal | off), email.include_meta. Optional branding updates the team (mode furrow | off | agency on yearly only; ignored on free except furrow). Set uploads_enabled and upload_allowed_types here — forms inherit them. Email templates support {{project.name}}, {{project.slug}}, {{form.name}}, {{form.slug}}, {{count}} (1-based clean submissions on this form, including the current one), and any submission field such as {{name}} or {{email}}. Use a fa…

ParameterTypeDescription
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.
allowed_domainsarrayReplace the allowed hostnames. Empty array accepts any origin.
brandingobjectPer-project branding override for notification emails and hosted pages.
default_redirect_urlWhere classic HTML posts redirect after success. Null returns JSON/inline success instead.
emailobjectNotification email template for the project: subject, from_name, intro, footer_mode, include_meta.
from_nameLegacy From display name. Prefer email.from_name.
honeypot_fieldstringName of the hidden honeypot input the snippet emits. Defaults to _gotcha.
namestringNew project display name.
notify_emailsarrayReplace the notification recipients (max 10).
rate_limit_per_ipintegerMax submissions per IP within rate_limit_window_s.
rate_limit_window_sintegerRate-limit window in seconds (max 86400).
require_turnstilebooleanReject submissions that lack a valid Turnstile token.
turnstile_secretCloudflare Turnstile secret used to verify tokens server-side. Null removes it.
turnstile_site_keyCloudflare Turnstile site key for the frontend widget. Null removes it.
upload_allowed_typesarrayAllowed upload MIME types, e.g. application/pdf or image/*.
upload_max_file_bytesintegerMax bytes per file (up to 25 MB).
upload_max_filesintegerMax files per submission (up to 20).
upload_max_total_bytesintegerMax total upload bytes per submission (up to 50 MB).
uploads_enabledbooleanAccept multipart file fields on this project's forms.
webhook_secretHMAC-SHA256 secret for the X-Furrow-Signature header. Omit to have one generated and returned.
webhook_urlPublic https endpoint that receives a signed JSON POST per clean submission. Null disables it.

rotate_project_inbox Rotate project inbox link

Use when a project's private inbox URL may have leaked. Issues a new inbox key; every previously shared inbox link stops working immediately. get_project returns the new files_url.

ParameterTypeDescription
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.

archive_project Archive project

Use to archive a website. Archived projects reject public submit. Do not use this as a hard delete. There is no unarchive tool in v1.

ParameterTypeDescription
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.

create_form Create form

Use to add a form under an existing project_id. Idempotent on slug unless strict is true. Overrides are nullable; omit them to inherit project notify emails, webhook, redirect, require_turnstile, and email templates. Pass email.subject / email.intro to override notification copy for this form only. Pass webhook_url_override to send this form to a different URL. Field contract labels (label) are used on notification emails. Checkbox groups, select multiple, and other multi-value HTML fields must use a [] suffix on the name (name="services[]") or only the last checked value is stored. Put servic…

ParameterTypeDescription
name *stringForm display name, e.g. Contact or Quote request.
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.
slug *stringLowercase hyphenated identifier, unique per project. Used for idempotent re-runs.
emailobjectPer-form subject and intro overrides for the notification email.
field_contractDeclared fields (name, type, label, report). Drives get_snippet and the email layout. Null clears it.
notify_emails_overrideRecipients for this form only. Null inherits the project's notify_emails.
redirect_url_overrideSuccess redirect for this form only. Null inherits default_redirect_url.
require_turnstile_overrideForce Turnstile on or off for this form. Null inherits the project setting.
strictbooleanWhen true, fail if the slug already exists instead of returning the existing record.
webhook_secret_overrideHMAC secret for this form's webhook. Null inherits the project secret.
webhook_url_overrideWebhook endpoint for this form only. Null inherits the project webhook.

update_form Update form

Use to patch form overrides. Pass null on an override to inherit again. Set email.subject or email.intro to override project notification copy for this form only; from_name, footer_mode, and include_meta stay on the project. Email templates support {{project.name}}, {{project.slug}}, {{form.name}}, {{form.slug}}, {{count}} (1-based clean submissions on this form, including the current one), and any submission field such as {{name}} or {{email}}. Use a fallback with {{name | "New submission"}}. Missing fields render empty and never error. Do not pass HTML; Furrow renders one owned layout. Set w…

ParameterTypeDescription
form_id *stringForm id from list_forms, create_form, or bootstrap_site.
emailobjectPer-form subject and intro overrides for the notification email.
field_contractDeclared fields (name, type, label, report). Drives get_snippet and the email layout. Null clears it.
namestringNew form display name.
notify_emails_overrideRecipients for this form only. Null inherits the project's notify_emails.
redirect_url_overrideSuccess redirect for this form only. Null inherits default_redirect_url.
require_turnstile_overrideForce Turnstile on or off for this form. Null inherits the project setting.
webhook_secret_overrideHMAC secret for this form's webhook. Null inherits the project secret.
webhook_url_overrideWebhook endpoint for this form only. Null inherits the project webhook.

archive_form Archive form

Use to archive a form so public submit returns 404. Do not use this as a hard delete.

ParameterTypeDescription
form_id *stringForm id from list_forms, create_form, or bootstrap_site.

upsert_project_webhook Upsert project webhook

Use to set or replace the project webhook URL. Available on free and yearly. A signing secret is generated once if the project has none. Forms inherit this unless webhook_url_override is set. Do not use this for a one-off delivery — call test_webhook.

ParameterTypeDescription
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.
webhook_url *Public https endpoint that receives a signed JSON POST per clean submission. Null disables it.
webhook_secretHMAC-SHA256 secret for X-Furrow-Signature. Omit to have one generated and returned.

test_webhook Test webhook

Use to POST a signed webhook.test event to the project's webhook URL. Available on free and yearly. Do not use this to inspect past deliveries — that is REST GET /api/projects/:id/webhook-deliveries. Fails if no webhook URL and secret are set.

ParameterTypeDescription
project_id *stringProject (website) id from list_projects, create_project, or bootstrap_site.

bootstrap_site Bootstrap site

Use this to stand up a client, one website (project), and its forms in a single call. name/slug are the client; optional project_name/project_slug default to the same. Free accounts cannot create a fourth active project — call create_upgrade_link if bootstrap_site returns plan_limit. Operator tokens (all workspaces) must pass team_id from list_teams. Team-scoped tokens may omit team_id and cannot target another workspace. Idempotent on client, project, and form slugs. Site settings (domains, Turnstile, notify emails, webhook, email templates, uploads) live on the project. Email templates sup…