Skip to main content
Glama

asksteps: replace the questions and branching of a funnel

asksteps_update_funnel
DestructiveIdempotent

Replaces the questions and the branching of an existing funnel. Requires "forms:write". READ IT FIRST with asksteps_get_funnel and send back everything you want to keep — every question you leave out is gone. Design, settings and the end pages are NOT touched unless you include them. Refused for funnels built from a PDF and for anything this format cannot describe; the answer says which.

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": {
      "funnel_id": "<funnel_id>",
      "spec": "<spec>"
    },
    "name": "asksteps_update_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe complete new funnel. Everything not included is removed.
funnel_idYesThe funnel id, from asksteps_get_funnel.

Output Schema

NameRequiredDescriptionDefault
urlNoLink that opens this form or funnel directly in its builder in the asksteps studio (after the user signs in). Give it to the user so they can look at the result. 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.
formIdNoThe id of the form. Keep it — it is how you read or change the form later.
statusYesOutcome. One of: "created", "updated", "not_connected", "not_found", "invalid_spec" (the structure was rejected — the note says exactly what to fix), "not_editable" (this form cannot be written from a spec), "unavailable", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do.
stepCountNoNumber of steps the form ended up with.
fieldCountNoTotal number of fields across all steps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / spec / properties / nodes / items / properties / answers / 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 current design (or the default on a new funnel)."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. Leave empty to keep the current design (or the default on a new funnel). An unknown id is rejected — it is never silently replaced by the default."
    • changedOutput schema / properties / url / description
      Previous value: -"Link that opens the form in the asksteps studio. Give it to the user so they can look at the result. Absolute when this deployment knows its public base URL, otherwise a site-relative path; never invent the domain part."New value: +"Link that opens this form or funnel directly in its builder in the asksteps studio (after the user signs in). Give it to the user so they can look at the result. Absolute when this deployment knows its public base URL, otherwise a site-relative path; never invent the domain part."
  2. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"created\", \"updated\", \"not_connected\", \"not_found\", \"invalid_spec\" (the structure was rejected — the note says exactly what to fix), \"not_editable\" (this form cannot be written from a spec), \"unavailable\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"owner_required\" (only the account owner may do this), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."New value: +"Outcome. One of: \"created\", \"updated\", \"not_connected\", \"not_found\", \"invalid_spec\" (the structure was rejected — the note says exactly what to fix), \"not_editable\" (this form cannot be written from a spec), \"unavailable\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."
  3. Changed3 schema fields changed
    • addedInput schema / properties / spec / properties / nodes / items / properties / answers / 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 / nodes / items / properties / answers / 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 / nodes / items / properties / answers / 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\"."
  4. Changed1 schema field changed
    • changedInput schema / properties / spec / properties / nodes / items / properties / answers / 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\"."
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description earns credit on top of that by spelling out the replacement semantics: every omitted question is destroyed, while design, settings and end pages survive unless included. It also discloses the required scope "forms:write" and the refusal cases plus where the reason is reported.

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

Conciseness5/5

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

Five tight sentences: what it does, permission needed, the read-first prerequisite, the data-loss warning, and the scope boundary, all front-loaded. No filler and the destructive warning sits before the conditional details.

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?

For a destructive, deeply nested mutation this covers the risks an agent must know: prerequisite read, irreversible omission, untouched surfaces, and refusal modes. With an output schema present it does not need to describe return values, and the annotations cover the safety profile.

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 100% and the nested spec is documented field by field, so the baseline is 3. The description adds the framing that the spec argument is a complete replacement rather than a patch, and points at the sibling call needed to construct it, which is meaning beyond the per-field schema text.

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?

States a specific verb and resource: replaces the questions and branching of an existing funnel, and the title reinforces it. An agent can immediately tell this is a full-content replacement of a funnel's step structure rather than a settings tweak, which separates it from the form/settings siblings.

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?

Gives a mandatory prerequisite (read with asksteps_get_funnel first) and explicit when-not conditions (refused for PDF-built funnels and formats this spec cannot describe). It does not explicitly route between this and asksteps_update_form for non-funnel resources, but the funnel-vs-form distinction is carried by the resource wording and the schema.

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