Skip to main content
Glama

state_machine_sm_create

Create a state machine by defining its name, initial state, and valid states. Use this tool to model workflows and manage state transitions in AI applications.

Instructions

[state_machine] Create a named state machine with an initial state. states: list of all valid state names. Then add allowed transitions with sm_add_transition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
initialYes
statesNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server