Skip to main content
Glama

Create form

create_form

Add a contact form, email signup, or lead capture form to a landing page.

Use when the user wants to collect submissions from visitors (e.g. "add a contact form", "collect emails", "add a signup form", "take cash-on-delivery orders", "take reservations", 「お問い合わせフォーム」「注文フォーム」「予約フォーム」). Convika handles submission storage, rate limits, and optional email notifications automatically. Give the form the fields the page asks for, not a generic name/email/message: an order form asks for what the shop needs (name, a tel field for the phone or WhatsApp number, a select of cities or governorates, an address textarea, a number for quantity), a reservation form for a date and the party size. Every answer is stored as text; a checkbox group's ticked options are joined with ", ". Entries are listed and exported (CSV) under the field labels, and the entry email links a tel answer for calling. After creating the form, embed it in the page HTML using save_page_content with the returned form ID, then call create_preview so the preview shows the form. Use get_form_submissions to view collected production data. Preview submissions validate the form but are not stored and do not trigger webhooks. A form needs an existing siteId. For a brand-new page, call create_landing_page_preview first (it returns the siteId), then this tool, then save_page_content with the embed, then create_preview. Available on all plans. Free shows 50 submissions a month; later ones are still saved and held from view (up to 1,000 more per form a month) and show on Pro. Pro/MAX: no monthly limit.

HTML embed example (use JavaScript fetch, NOT with method="POST"):

IMPORTANT: Replace {formId} with the actual form ID. Replace {successMessage} with the form's successMessage or a suitable thank-you message. Do NOT use — always use the JavaScript fetch approach above to submit to /_form.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteId": "<siteId>",
      "fields": "<fields>"
    },
    "name": "create_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesForm fields configuration
siteIdYesThe ID of the page to create the form for
notifyEmailNoEmail address to receive submission notifications
successMessageNoMessage shown after successful submission
submitButtonLabelNoCustom label for the submit button (default: 'Submit')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • changedInput schema / properties / fields / items / properties / type / description
      Previous value: -"Field type: text, email, textarea, tel (a phone or WhatsApp number), number, date (sent as YYYY-MM-DD), select (a dropdown), radio (pick one), or checkbox (tick any; without options, one box such as 'I agree')"New value: +"Field type: text, email, textarea, tel (a phone or WhatsApp number), number, date (sent as YYYY-MM-DD), select (a dropdown), radio (pick one), checkbox (tick any; without options, one box such as 'I agree'), or photos (an <input type=\"file\" accept=\"image/*\" multiple>: up to 10 photos an entry, kept privately for the workspace's members). The example script below sends no photos: with a photos field, post multipart/form-data to /_form instead, a 'payload' part holding the same JSON and one 'photo.<field id>' part per photo, each a JPEG drawn on a canvas at most 2,000 pixels on its longest side and 2 MB (canvas.toBlob(cb, 'image/jpeg', 0.85), which also leaves the photo's location data behind). A refused photo answers with error photo_quota, photo_count, photo_size or photo_type."
    • changedInput schema / properties / fields / items / properties / type / enum
      Previous value: -[
      -  "text",
      -  "email",
      -  "textarea",
      -  "tel",
      -  "number",
      -  "date",
      -  "select",
      -  "radio",
      -  "checkbox"
      -]New value: +[
      +  "text",
      +  "email",
      +  "textarea",
      +  "tel",
      +  "number",
      +  "date",
      +  "select",
      +  "radio",
      +  "checkbox",
      +  "photos"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to create the form for"New value: +"The ID of the page to create the form for"
  4. Changed1 schema field changed
    • changedInput schema / properties / notifyEmail / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  5. Changed3 schema fields changed
    • addedInput schema / properties / fields / items / properties / options
      Added value: +{
      +  "description": "For select, radio, and checkbox: what the visitor picks from, each both the text shown and the answer stored (e.g. ['Cairo', 'Giza', 'Alexandria']). Required for select and radio; leave it out for other types.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 300,
      +  "type": "array"
      +}
    • changedInput schema / properties / fields / items / properties / type / description
      Previous value: -"Field type: text, email, or textarea"New value: +"Field type: text, email, textarea, tel (a phone or WhatsApp number), number, date (sent as YYYY-MM-DD), select (a dropdown), radio (pick one), or checkbox (tick any; without options, one box such as 'I agree')"
    • changedInput schema / properties / fields / items / properties / type / enum
      Previous value: -[
      -  "text",
      -  "email",
      -  "textarea"
      -]New value: +[
      +  "text",
      +  "email",
      +  "textarea",
      +  "tel",
      +  "number",
      +  "date",
      +  "select",
      +  "radio",
      +  "checkbox"
      +]
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the write/non-destructive profile, but the description adds substantial behavior: submissions are stored automatically with rate limits and optional email notifications, preview entries are validated but not persisted and fire no webhooks, answers are stored as text with multi-value options joined by ", ", and photo rejections return photo_quota/photo_count/photo_size/photo_type. It also discloses plan gating (Free 50/month, later entries held up to 1,000 and visible on Pro; Pro/MAX unlimited), which is a real constraint an agent must communicate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is strong: purpose, triggers, field-design guidance, workflow, plan limits, then the embed. The large inline fetch script is long but functionally load-bearing for correct embedding, so it earns most of its space; the only waste is duplication of the 'do not use <form method=POST>' warning in both the code comment and the closing IMPORTANT paragraph.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description still tells the agent what it gets back (a form ID used for embedding) and what to do with it next. Given five parameters, nested field objects, and an embedding requirement, the coverage of storage behavior, plan limits, preview semantics, and photo handling is unusually complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description goes beyond it by prescribing field composition per form type (a tel field for phone/WhatsApp, a select of cities, a number for quantity, a date and party size for reservations) rather than a generic name/email/message set. It also ties successMessage into the embed placeholder and implies the return value carries a formId, though notifyEmail and submitButtonLabel get no extra semantic treatment.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line states a concrete verb+resource (add a form to a landing page) and enumerates the distinct variants (contact, email signup, lead capture, order, reservation) with multilingual example triggers. It clearly separates itself from siblings like get_form_submissions, save_page_content, and create_preview by assigning each a step in the workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use phrasing with quoted user intents, an explicit prerequisite (an existing siteId, with create_landing_page_preview named for the new-page case), and an ordered post-creation workflow (save_page_content then create_preview). It also directs reading collected data to get_form_submissions and states that preview submissions are not stored, which is exactly the when-not guidance most definitions lack.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.