Skip to main content
Glama

asksteps: create a process (as a draft)

asksteps_create_process

Creates a process from building blocks (form, appointment, email, info, end) and the transitions between them. Requires "automation:write". The process is created as a DRAFT: nothing is switched on, nothing is sent, and the user opens it in the studio (blocks are laid out there). Call asksteps_get_automation_catalog first for kinds, exits, settings, conditions and limits. A fixed recipient address cannot be set by an agent (address_not_allowed); an API request block (kind "api") can only be created in the studio (api_part_studio_only); a message template for a transition must already exist (asksteps_create_message_template). portModes per block sets how an exit chooses ("first" or "all"); without it an exit is "all", or "first" when it mixes a transition without condition with ones that have a condition. Answers with the issues (path and code) when something is wrong, and "quota_exceeded" when the plan's process limit is reached. Switching on is a separate step: asksteps_set_process_active, which needs the account's mandate and otherwise answers "confirmation_required".

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_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe process: name, description, building blocks and transitions.

Output Schema

NameRequiredDescriptionDefault
urlNoPath of the process editor in the asksteps studio. Hand it to the user; a process created here shows its blocks laid out when the studio opens it.
noteYesOne or two sentences for the user. On "confirmation_required" and "pause_required" it says why.
usedNoHow many the account holds. Only on "quota_exceeded".
limitNoThe plan limit. Only on "quota_exceeded".
issuesNoThe problems found, with path and code. Empty unless status is "invalid".
statusYesOutcome. One of: "created" (a draft exists, nothing is switched on), "updated", "invalid" (the issues say exactly what to fix; nothing was saved), "quota_exceeded" (the account holds as many processes as its plan allows), "pause_required" (the process is active and this change touches its structure — it can only be made while the process is paused), "confirmation_required" (the process is active or paused and the account has not authorised an agent to change it: NOTHING was written, give the user the url), "stale" (the process was switched on, paused or otherwise changed in status since you read it: NOTHING was written, read it again), "rate_limited" (too many changes to live objects in the last minute), "not_found", "not_connected", "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.
quotaKeyNoThe limit that was reached, for example "processes.max". Only on "quota_exceeded".
processIdNoThe id of the process.
processStatusNoThe status of the process after the call: "draft", "active" or "paused". A created process is always "draft".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / spec / properties / parts / items / properties / portModes
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "How each exit of this block chooses among its transitions, by port name: \"first\" = the first transition in order whose condition matches wins, a transition without condition is the fallback (\"otherwise\") and must come last; \"all\" = every transition whose condition matches is taken, a transition without condition is always taken (\"always\"); if one of the chosen transitions leads to an end block, only that one is taken. Read: the effective mode of every exit that has transitions. Write: omit an exit to keep its stored mode; a new exit without a value is \"all\", except when its transitions mix one without and others with a condition, then it is \"first\". Any other value is rejected (process_port_mode_invalid).",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that nothing is switched on or sent, the process must be opened in the studio, fixed recipient addresses and API blocks are restricted, quota limits can trigger quota_exceeded, and validation issues are returned with path and code. This is substantial behavioral context for a write operation that is non-destructive because it only creates a draft.

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?

The description is dense but front-loaded: the core action and draft status come first, followed by prerequisites and constraints. Every sentence contributes operational guidance, and there is no redundant framing or filler despite the tool's complexity.

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-value details need not be repeated. For a complex nested creation tool, the description covers draft semantics, prerequisites, restrictions, activation flow, validation behavior, and quota errors, leaving no obvious gap for correct invocation.

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 the schema already documents the single spec parameter and its nested fields thoroughly. The description still adds useful semantic constraints by naming error codes, explaining that portModes defaults to 'all' or 'first' depending on conditions, and noting that an API block can only be created in the studio.

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 states a specific verb and resource: it creates a process from building blocks and transitions. It immediately clarifies the critical distinction that the process is created as a DRAFT and that switching it on is a separate operation handled by asksteps_set_process_active.

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?

It gives explicit prerequisites (call asksteps_get_automation_catalog first, create message templates beforehand), constraints on what cannot be set by an agent, and the follow-up path for activation. It also distinguishes draft creation from activation and names the tool that performs activation.

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