Skip to main content
Glama

Create form

create_form
Destructive

Create a new form in a project. The form is on no page yet, so the live site does not change; a form section shows it by referencing its id (form.formId). For a scored form (quiz, scorecard, calculator), options carry points in their field's optionScores, keyed by option id: in score mode the points are summed and scoring.results shows the card whose scoreRange (inclusive, whole numbers) holds the total, scoring.gate before_results with gateFields asks for contact details before the result shows, calculator.display writes the total as a formatted amount such as $9.6M a year, calculator.stats adds up to 4 figures worked out from the total (such as a 3-year value or a payback time), and calculator.parts with each option's optionParts shows the visitor's own split of the total as bars. The schema is checked first: duplicate field names or option values, points keyed to options that do not exist, points in the wrong shape for resultType, and gateFields naming missing fields are refused; score range gaps and overlaps come back as warnings. A retry makes a second form: if the answer was lost, look for it with list_forms before trying again.

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": {
      "projectId": "<projectId>",
      "name": "<name>",
      "formSchema": "<formSchema>"
    },
    "name": "create_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesForm name shown in the dashboard
projectIdYesThe project ID
formSchemaYesFields, groups, displayMode, scoring and delivery settings

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / formSchema / properties / successMessage
      Added value: +{
      +  "description": "HTML the visitor sees after submitting, in place of the standard thank-you line, such as <p><strong>Thank you!</strong></p><p>We'll be in touch soon.</p>",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already flag this as a non-read-only, destructive write, and the description adds substantial behavioral context beyond them: the live site does not change, retries create duplicate forms, validation refuses certain invalid schemas, and score-range gaps or overlaps produce warnings. These details materially help an agent anticipate side effects and failure modes.

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

Conciseness3/5

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

The purpose is front-loaded, which is good, but the middle becomes a dense run-on covering scoring, calculator display, stats, parts, validation refusals, and warnings. The content is relevant, yet the lack of bullets or paragraph breaks makes a complex tool harder to scan than it needs to be.

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

Completeness4/5

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

For a complex creation tool with many nested configurable features, the description covers the important behavioral distinctions: page binding, scoring modes, calculator outputs, validation, and retry hazards. It does not describe the exact response shape, though the mention of form.formId partially compensates in the absence of an output schema.

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 description coverage is already 100%, so the schema carries most parameter documentation. The description still adds valuable cross-field meaning: optionScores key points by option id, score mode sums points into scoring.results scoreRange, gateFields controls pre-result contact collection, and optionParts must align with calculator.parts. It does not explain every field, but it adds real semantics for the most complex nested parameters.

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 description starts with a specific verb and resource: 'Create a new form in a project.' It distinguishes creation from later form usage by explaining that the form is not on a page yet and that a form section references its id. This is clear enough to separate it from sibling tools such as update_form_schema and list_forms.

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

Usage Guidelines4/5

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

The description gives clear usage context: use this to create a new form, the live site does not change until a section references it, and if a retry is needed, check list_forms first because retrying creates a second form. It does not explicitly say to use update_form_schema when modifying an existing form, so the alternative guidance is not fully exhaustive.

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.