Skip to main content
Glama

asksteps: turn a described form into an openable draft

asksteps_create_draft

Turns a form you have designed with the user into a draft and returns a link. Opening the link shows the form in the asksteps builder, where the user can change it and save it — no account is needed to look at it. Use this once you and the user agree on what the form should ask; it is the step that turns the conversation into something they can actually use. It does NOT write into anyone's account: a human always saves it. Give the returned url to the user verbatim. For digitising an existing PDF, do not rebuild it here — the analysis only shows you part of a large form. Point the user at the PDF import in the product instead. If the draft is rejected, the note says exactly what to fix; correct it and call 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": {
      "spec": "<spec>"
    },
    "name": "asksteps_create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe form: a name and its steps with their fields.

Output Schema

NameRequiredDescriptionDefault
urlYesThe link to open the draft in asksteps. Give this to the user verbatim — it is the whole point of the tool. Absolute when this deployment knows its public base URL, otherwise a site-relative path; never invent the domain part.
noteYesOne sentence for the user. On rejection it says exactly what to fix.
statusYesOutcome. One of: "created", "invalid_spec" (the draft was rejected — see note).
stepCountNoNumber of steps and fields the draft ended up with, so you can tell the user what they will see.
fieldCountNoTotal number of fields across all steps.
validForDaysNoHow many days the link stays valid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / spec / properties / steps / items / properties / fields / items / properties / type / description
      Previous value: -"Field type. One of: \"text\" (single line), \"text-area\" (multi-line), \"number\", \"date\", \"time\", \"select\" (dropdown, needs options), \"checkbox-group\" (choice group, needs options; one or several answers, see Selection), \"boolean\" (single yes/no checkbox), \"file\" (upload), \"signature\" (drawn signature), \"image-upload\" (the visitor uploads one photo, e.g. a passport photo), \"contact\" (the built-in contact block: name, email, phone — use this instead of building those three by hand), \"text-block\" (explanatory text, not an input), \"table\" (a grid to fill in), \"image-choice\" (a picture to pick), \"image\", \"video\"."New value: +"Field type. One of: \"text\" (single line), \"text-area\" (multi-line), \"number\", \"date\", \"time\", \"select\" (dropdown, needs options), \"checkbox-group\" (choice group, needs options; one or several answers, see Selection), \"boolean\" (single yes/no checkbox), \"file\" (upload), \"signature\" (drawn signature), \"image-upload\" (the visitor uploads one photo, e.g. a passport photo), \"contact\" (the built-in contact block: name, email, phone — use this instead of building those three by hand), \"text-block\" (explanatory text, not an input), \"table\" (a grid to fill in), \"image-choice\" (a picture to pick), \"image\", \"video\". Two more element types exist but are set only in the asksteps studio: appointment booking and custom HTML. A form that contains one of them can be read here but not written (\"editable\" is false and \"blockedBy\" says why)."
    • changedInput schema / properties / spec / properties / themeId / description
      Previous value: -"Design preset id, e.g. \"classic\" or \"midnight\". Call asksteps_list_themes for the list. Leave empty to keep the form's current design (or the default on a new form). An unknown id is rejected — it is never silently replaced by the default."New value: +"Design id. The designs shipped with the product (e.g. \"classic\" or \"midnight\") are listed by asksteps_list_themes; the account's own designs (\"design-<number>\") by asksteps_list_designs, which needs a connected account. Leave empty to keep the form's current design (or the default on a new form). An unknown id is rejected — it is never silently replaced by the default."
  2. Changed3 schema fields changed
    • addedInput schema / properties / spec / properties / steps / items / properties / fields / items / properties / display
      Added value: +{
      +  "description": "For \"checkbox-group\": \"list\" (options listed one below the other, the default) or \"dropdown\" (a dropdown showing the picked options as tags). Optional.",
      +  "type": "string"
      +}
    • addedInput schema / properties / spec / properties / steps / items / properties / fields / items / properties / selection
      Added value: +{
      +  "description": "For \"checkbox-group\": \"single\" (exactly one option may be picked, e.g. yes/no, gender, a membership class) or \"multiple\" (any number, the default). Optional.",
      +  "type": "string"
      +}
    • changedInput schema / properties / spec / properties / steps / items / properties / fields / items / properties / type / description
      Previous value: -"Field type. One of: \"text\" (single line), \"text-area\" (multi-line), \"number\", \"date\", \"time\", \"select\" (dropdown, needs options), \"checkbox-group\" (multiple choice, needs options), \"boolean\" (single yes/no checkbox), \"file\" (upload), \"signature\" (drawn signature), \"image-upload\" (the visitor uploads one photo, e.g. a passport photo), \"contact\" (the built-in contact block: name, email, phone — use this instead of building those three by hand), \"text-block\" (explanatory text, not an input), \"table\" (a grid to fill in), \"image-choice\" (a picture to pick), \"image\", \"video\"."New value: +"Field type. One of: \"text\" (single line), \"text-area\" (multi-line), \"number\", \"date\", \"time\", \"select\" (dropdown, needs options), \"checkbox-group\" (choice group, needs options; one or several answers, see Selection), \"boolean\" (single yes/no checkbox), \"file\" (upload), \"signature\" (drawn signature), \"image-upload\" (the visitor uploads one photo, e.g. a passport photo), \"contact\" (the built-in contact block: name, email, phone — use this instead of building those three by hand), \"text-block\" (explanatory text, not an input), \"table\" (a grid to fill in), \"image-choice\" (a picture to pick), \"image\", \"video\"."
  3. Changed1 schema field changed
    • changedInput schema / properties / spec / properties / steps / items / properties / fields / items / properties / type / description
      Previous value: -"Field type. One of: \"text\" (single line), \"text-area\" (multi-line), \"number\", \"date\", \"time\", \"select\" (dropdown, needs options), \"checkbox-group\" (multiple choice, needs options), \"boolean\" (single yes/no checkbox), \"file\" (upload), \"signature\" (drawn signature), \"contact\" (the built-in contact block: name, email, phone — use this instead of building those three by hand), \"text-block\" (explanatory text, not an input), \"table\" (a grid to fill in), \"image-choice\" (a picture to pick), \"image\", \"video\"."New value: +"Field type. One of: \"text\" (single line), \"text-area\" (multi-line), \"number\", \"date\", \"time\", \"select\" (dropdown, needs options), \"checkbox-group\" (multiple choice, needs options), \"boolean\" (single yes/no checkbox), \"file\" (upload), \"signature\" (drawn signature), \"image-upload\" (the visitor uploads one photo, e.g. a passport photo), \"contact\" (the built-in contact block: name, email, phone — use this instead of building those three by hand), \"text-block\" (explanatory text, not an input), \"table\" (a grid to fill in), \"image-choice\" (a picture to pick), \"image\", \"video\"."
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses that the draft does not write into anyone's account, that a human always saves it, that viewing needs no account, that file uploads are impossible so only already-online media URLs work, and that the returned note on rejection states exactly what to fix. These are material operational facts an agent could not derive from readOnlyHint/destructiveHint alone.

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?

Front-loaded with purpose, then no-account viewing, then the when-to-use trigger, then the PDF exclusion and retry — a sensible order where almost every sentence carries a distinct fact. The clause "it is the step that turns the conversation into something they can actually use" is slightly promotional and could be cut.

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?

Output schema exists so return values need no explanation, yet it still tells the agent to hand the url over verbatim, and it covers limits (cannot write, blocked element types, no file upload). The one residual ambiguity is whether the caller needs a connected/paid account to create a draft, since only viewing is stated to be account-free.

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 100% and the nested spec is exhaustively self-documenting, so the schema carries essentially all parameter meaning; the description only frames the spec as the agreed design from the conversation. It adds no field-level guidance the schema does not already give, which matches the baseline of 3 for a fully covered schema.

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 first sentence names a specific verb and artifact ("turns a form ... into a draft and returns a link") and the title reinforces it, so an agent knows exactly what is produced. It does not explicitly distinguish itself from asksteps_create_form or asksteps_update_form, so the boundary between drafting and creating/updating a real form is inferred rather than stated.

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?

Clear positive trigger ("use this once you and the user agree on what the form should ask") and an explicit exclusion with an alternative for PDF digitisation ("do not rebuild it here ... point the user at the PDF import"). It also gives a retry policy on rejection. It gives no guidance on when to prefer asksteps_create_form or asksteps_update_form over drafting, which is the main missing routing decision.

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