Docs
/
Setup

Graphs: build, test and switch on

Tools are deterministic graphs—build in chat, smia_test with real side effects, enable when ready; graph size and runtime caps vary by plan.

All plans

Every tool is a graph: nodes (HTTP, mail, logic, bundles, …) wired together. The executor walks that DAG the same way on every run—what you test is what production runs.

Workflow

  1. Create — smia_create type=tool (or the canvas UI). New tools start disabled.
  2. Test — smia_test with sample args. This runs the live graph, including real HTTP, email, and provider calls. It is not a sandbox (see repo docs/TASKS.md).
  3. Enable — smia_update type=tool enabled:true (or Publish in the UI). Disabled tools cannot be called or used in Tasks.

Mode taxonomy: canvas / smia_test invocations are stored as mode=test for server tools. Builder test_graph_tool counts as builder activity, not test mode.

Graph size (by plan)

Complexity = root canvas + each uniquely referenced bundle definition.

FreeHobbyPro
Nodes / edges100 / 240300 / 7201,000 / 2,400
Max execution5 s30 s60 s
Loop / map iterations25 / 5050 / 250100 / 1,000

Bundle bodies (all plans): max depth 5, 80 nodes, 200 edges per bundle.

Validation runs at save time against TIER_LIMITS.graph for the hub plan.

Secrets in graphs

Put {{env.KEY}} in saved node config (URL, headers, templates)—not in caller arguments. Wired inputs are literal; placeholders in arguments are not expanded. See Keys and secrets.

Example agent sequence

smia_catalog
smia_create type=tool hub_slug=ops server_slug=mcp name=fetch_status …
smia_test hub_slug=ops server_slug=mcp tool_name=fetch_status args={}
smia_update type=tool hub_slug=ops server_slug=mcp tool_name=fetch_status enabled:true

Coworkers and agents then call fetch_status on https://smia.tools/ops/mcp with the same deterministic graph.

Verified against commit aae68ddd0a3c9597d8481c376d33eb3ca2effcb3 on 2026-11-26.