hdls Forms

hdls Forms is a headless, MCP-native forms & surveys backend. It manages forms, questions, and submissions, operated entirely through named tools your AI assistant calls. It stands in for tools like Typeform, Google Forms — same job, no UI to run.

💬 Just ask

"Create a form for Acme, then show me my forms."

You don't call these tools yourself — just tell your assistant in plain English. Everything below is the reference for when you (or your assistant) want the exact details.

How Forms is organized

The headline entity is the form — start there, then attach the rest to it. Records connect by reference: a question links to a form. The response table is an append-only timeline — every change and note lands there and is never edited or deleted.

EntityPurposeRelates to
formA form/survey definition that owns its questions and collects responses.
questionAn ordered field belonging to a form; type drives rendering and validation.form
responseAppend-only: one submission of a form; answers stored as child rows + denormalized data map.form
answerAppend-only single answer to one question within a response; enables per-question analysis.response, question

Common workflows

Each line is one real sequence of tool calls — your assistant chains them for you.

  • Set up a form end to end: create_formadd_questionsubmit_response
  • Move a form through its lifecycle: create_formsubmit_response
  • Find a record and read the full picture: list_responsessummarize_responses

Tools

Call these at https://hdls.ai/api/mcp/forms. Required fields you must supply; optional fields refine the call. You never pass tenant_id — it is stamped server-side.

Create

ToolWhat it doesRequiredOptional
create_formCreate a new form.titledescription, slug, status, is_public, settings, data

Update & advance

ToolWhat it doesRequiredOptional
add_questionAdd a question.form_id, labelhelp_text, type, position, required, options, data
submit_responseSubmit a response.form_idrespondent, status, source, ip_address, submitted_at, data

Find & read

ToolWhat it doesRequiredOptional
list_responsesSearch responses by free-text and/or column filters (tenant-scoped, paginated).search, filters, limit, orderBy
summarize_responsesFetch a response plus its most recent timeline activity in one call.idactivityLimit

Field lists come from the product's live schema and are embedded in each tool's own description — read the tool description for the exact, current fields.

Field reference

Every field you can set on each record. Custom fields you add live alongside these in data.

form

FieldTypeRequiredNotes
titletextYesDisplay name.
descriptiontext
slugtext
statustextLifecycle state.
is_publictrue / false
settingsjson
datajsonFree-form JSON — custom fields live here.

question

FieldTypeRequiredNotes
form_ididYesLinks to a form.
labeltextYes
help_texttext
typetext
positionnumber
requiredtrue / false
optionsjson
datajsonFree-form JSON — custom fields live here.

Tailor it with custom fields

Add fields without a schema change. add_custom_field defines one, list_custom_fields shows what's defined, and promote_custom_field (admin) shares a personal field with the whole workspace. The value lives in each row's data (JSON) and is set and read through the normal record tools. See Products, tools & custom fields for the full model.

Roles & safety

  • Tenant isolation is automatic. Your credential is pinned to one workspace; you never pass tenant_id, and you can only ever see your own data (enforced by Postgres row-level security).
  • Role-gated. Permissions run reader < member < admin < owner. Installing a product and promoting a custom field workspace-wide need admin/owner.
  • History is append-only. The response timeline is never edited or deleted — it's your audit trail.

Connect

On the concierge (https://hdls.ai/api/mcp), run install_product({ slug: "forms" }) (admin/owner) to enable it for your workspace, then add https://hdls.ai/api/mcp/forms as a connector in your assistant — see Connect your assistant.

A worked example

The literal call your assistant makes when you ask it to create the headline record:

Tool: create_form
Arguments: {
  "title": "Customer satisfaction survey"
}

See All products · Connect your assistant · Automation