Skip to main content
Glama

create_smart_workflow

Creates ERPNext workflows from specified states and transitions, including optional email alerts; retained for backward compatibility—use create_workflow with smart mode for new setups.

Instructions

[DEPRECATED] Use create_workflow with mode='smart' instead – kept for backward compatibility

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": {
      "document_type": "<document_type>",
      "workflow_name": "<workflow_name>",
      "states": "<states>",
      "transitions": "<transitions>"
    },
    "name": "create_smart_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
statesYesArray of workflow states
is_activeNoWhether workflow is active (1/0, optional, defaults to 1)
transitionsYesArray of workflow transitions
document_typeYesTarget DocType for the workflow
workflow_nameYesName of the workflow
send_email_alertNoSend email alerts on state changes (1/0, optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the single most important behavioral fact — the tool is deprecated and superseded — but says nothing about side effects such as workflow activation, email alerts on state changes, or validation of state/transition graphs. Acceptable for a shim, but thin if the tool must actually be invoked.

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?

One short sentence with the deprecation tag and the replacement front-loaded; zero wasted wording.

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 agent choosing a tool, the definition is complete: it points unambiguously at the replacement and the schema fully documents inputs. But if a legacy caller must still use it, the description gives no behavioral context about workflow creation, activation, or alerting, and there is no output schema to fall back on.

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 all six parameters, including the nested states and transitions arrays, are documented in the schema itself. The description adds no meaning beyond that, so the baseline 3 applies.

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

Purpose3/5

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

The text is framed as a deprecation notice rather than a statement of function; the purpose ('create a smart workflow') is only inferable from the tool name and from the named replacement create_workflow with mode='smart'. It does effectively distinguish itself from siblings by redirecting to create_workflow, but it never says what a smart workflow is or what gets created.

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?

Explicit when-not guidance ('[DEPRECATED]') plus a named alternative and the exact invocation ('create_workflow with mode="smart"'), plus the only legitimate reason to call it (backward compatibility). This is precisely the routing information an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.