Skip to main content
Glama

Create form

create_form

Create a form definition as a DRAFT (never auto-activated). Fields are stored as a JSON array in schema_json.fields.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
slugNoAuto-generated from the name when omitted
fieldsNoField defs: { key, label, type (text|email|phone|textarea|number|select|checkbox|file), required?, options?, placeholder?, helpText? }
visibilityNopublic|internal|restricted (default public)
descriptionNo
notify_emailNo
success_messageNo
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, idempotent=false, openWorld=false), so the description's contribution is the lifecycle detail: the form is always created as a DRAFT and is never auto-activated. That is genuine behavioral context an agent could not derive from the annotations. It omits permission implications and what defaults are applied to notifications or visibility.

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?

Two short sentences, both carrying information, with the DRAFT constraint front-loaded. No filler or repetition of the title.

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

Completeness3/5

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

For an 8-parameter creation tool with no output schema, the description covers the key lifecycle fact but leaves open what is returned, whether drafts are visible to end users, and how the created form transitions to active. Adequate to invoke correctly, thin on consequences.

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

Parameters3/5

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

Schema description coverage is 50% across 8 parameters, so the description would need to compensate and largely does not. It clarifies that fields are persisted as a JSON array in schema_json.fields, which adds storage-level meaning, but the remaining parameters (notify_email, success_message, description, target_tenant_id's super-admin restriction beyond the schema note) get no elaboration.

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

Purpose4/5

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

The definition states a specific verb and resource ('Create a form definition') and adds the important qualifier that the result is a DRAFT. It does not explicitly contrast itself with update_form or add_form_field, so an agent must infer that fields added later go through siblings, but the core operation is unambiguous.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use guidance and no mention of prerequisites beyond the draft note. The 'never auto-activated' and DRAFT framing implies the natural workflow is create-then-update via update_form/add_form_field, but that is left for the agent to infer.

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.

Resources