Skip to main content
Glama

asksteps: delete a form and its submissions

asksteps_delete_form
Destructive

Deletes a form or funnel from the connected account — together with every submission it has collected. Requires "forms:write". The first call NEVER deletes: it returns "confirmation_required" and the number of submissions that would be lost. Read that number out to the user, get their agreement, and only then call again with confirm = true. This cannot be undone.

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

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true only AFTER the user has agreed, knowing how many submissions go with it.
form_idYesThe form or funnel id.

Output Schema

NameRequiredDescriptionDefault
noteYesOne sentence for the user. On "confirmation_required" it says how many submissions would be lost — read that number out loud before asking.
statusYesOutcome. One of: "deleted", "confirmation_required" (read the note and call again with confirm = true if the user really wants this), "not_connected", "not_found", "rate_limited" (too many calls in the last minute — wait a minute), "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.
leadCountNoHow many submissions this form has collected. Deleting the form deletes them too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"deleted\", \"confirmation_required\" (read the note and call again with confirm = true if the user really wants this), \"not_connected\", \"not_found\", \"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."New value: +"Outcome. One of: \"deleted\", \"confirmation_required\" (read the note and call again with confirm = true if the user really wants this), \"not_connected\", \"not_found\", \"rate_limited\" (too many calls in the last minute — wait a minute), \"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."
  2. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"deleted\", \"confirmation_required\" (read the note and call again with confirm = true if the user really wants this), \"not_connected\", \"not_found\", \"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: \"deleted\", \"confirmation_required\" (read the note and call again with confirm = true if the user really wants this), \"not_connected\", \"not_found\", \"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. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them by disclosing the cascading loss of all submissions, the two-step confirmation handshake, the shape of the first response, the required permission scope, and the irreversibility of the operation. These are exactly the traits an agent needs before invoking a destructive tool.

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?

Front-loaded with the destructive outcome, then the precondition, then the protocol, then the irreversibility warning. Every sentence carries distinct information; none restates the name or the annotations.

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?

An output schema exists, so return values need no elaboration, and the description still previews the first-call payload. For a destructive, two-parameter tool, nothing an agent needs to call it safely is missing.

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%, so both parameters are already documented in the schema. The description nonetheless adds behavioral meaning to confirm: it must be set only after the user has agreed, having been shown how many submissions will be lost. That is more than the schema's phrasing conveys, though the syntax itself remains schema-supplied.

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 (deletes a form or funnel) and immediately names the cascade scope — every submission it has collected. That scope distinguishes it cleanly from siblings like asksteps_get_form and asksteps_update_form, which operate on the same resource without destroying submissions.

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?

Gives an explicit when-not: the first call never deletes and returns 'confirmation_required'. It then prescribes the exact workflow — read the submission count to the user, obtain agreement, then re-call with confirm = true — plus the 'forms:write' prerequisite. Nothing about the decision to call is left to inference.

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