- Event rules: deterministic. “When
hit_limitarrives withlimit = ai_credits, open a signal.” No AI involved. - The AI reviewer: reads a per-person dossier (their event timeline filtered by the event dictionary, computed absences, your org brief) and answers with findings. Each finding recommends one action from your action catalog, and an admitted finding with a
signalaction becomes a signal.
https://api.flywheel.cx/mcp). For the server itself and how to connect, see /mcp/overview.
How the pieces fit together
The signal tools configure one pipeline. Read it left to right:- An event arrives for a person (from your app, an integration, or Flywheel itself).
- Event rules check it. Every enabled rule whose
on_event,filtersandoccurrencematch writes its own signal, unless theevent_rulesproducer is paused. Configure withcreate_signal_rule/update_signal_rule. - The reviewer may be booked. If the reviewer is on (
update_reviewer_settingswithreviewer_enabled: true) and the org has review allowance left, a matching review trigger (create_review_trigger) books a review of that person, after the trigger’s delay. Independently, an event classifiedcriticalin the event dictionary (update_event_dictionary) books a review with no trigger at all. A daily staleness backstop also books active people who have not been reviewed forreviewer_staleness_days. - The reviewer runs on the booked person: it reads their dossier, your
org_brief, and your enabled actions with theirguidance(list_signal_actions), and answers with up toreviewer_max_findingsfindings. Each finding must cite evidence from the dossier or it is dropped. - Admitted findings are delivered according to the chosen action’s
delivery:signalwrites a signal,watchsets a tripwire for a later review,noneis recorded on the review log only. - The signal is stamped with its routing from its rule (or action):
handlerhuman or agent,rungdraft, approve or auto, and an optionaldefault_assignee_user_id. It lands in the signals list in itsbucket. - The signal closes: worked by a person, resolved as won by a purchase (
purchase_resolves) or by one of its rule’sresolve_onevents, or expired afterexpiry_minutes.
Once a signal is written, Flywheel acts on its routing: it emits
$fw_signal_created for workflows (playbooks), starts the agent for handler: "agent" with rung: "auto" within the agent’s daily cap, schedules the follow_up, and closes the signal as won when a resolve_on event arrives. Each person gets at most one signal message per 48 hours, across every producer:- Dropped. A signal is dropped (state
suppressed, nothing else happens) when another signal messaged the same person in the last 48 hours. - Waiting. While another signal may be messaging them right now, the new signal waits. That means the other signal’s agent run started in the last 30 minutes, it was announced in the last 30 minutes, or it is still on its way and came first. The waiting signal stays open in the list and is announced on a later sweep once that settles.
- Not covered: a late playbook send. A playbook counts as messaging the person for those 30 minutes only. A send step that runs later, after a
waitstep or when the sending domain’s send guard releases an email it held, marks the signal sent once it goes out, but until then another signal can reach the same person. Put a signal playbook’s send step right after its filter, with no wait before it.
Event rules and the reviewer are two separate producers. A signal from either looks the same downstream: same list, same routing fields. Pausing one does not affect the other: event rules are paused with
set_signal_producer_status, the reviewer is switched off with update_reviewer_settings.Permissions for signal tools
Every signal tool declares one permission, checked against the MCP connection’s credential:delete_signal_rule, delete_review_trigger and delete_signal_action are marked destructive. Any id you pass (handler_agent_id, follow_up.agent_id, default_assignee_user_id, scan_segment_id) must be a UUID that belongs to your organization; ids from another org are refused.
Routing: handler, rung and assignee
Signal rules (create_signal_rule) and reviewer actions (create_signal_action, update_signal_action) share the same routing fields:
handler:human(default) oragent. Who works the signal.handler_agent_id: the agent that works it. Required on a rule whenhandlerisagent, and refused whenhandlerishuman. Get ids fromlist_signal_agents.rung: the autonomy level,draft(default),approveorauto. Stamped on every signal the rule or action writes. On reviewer actions it can never exceed the action’srung_ceiling.default_assignee_user_id: the team member the signal is assigned to. Must be a member of the org.follow_up:{ "after_minutes": 4320, "agent_id": "..." }, meant to hand a still-unresolved signal to an agent after a delay.after_minutesis 5-86400 (60 days),agent_idmust be one of your org’s agents, and on a ruleafter_minutesmust be shorter thanexpiry_minutes. On an action it needsrung_ceiling: "auto". The agent messages the person with no approval step, whatever the signal’s rung.
handler to human without passing handler_agent_id drops the agent automatically.
A signal with handler: "agent" and rung: "auto" starts one run of its agent as soon as it is written, and a follow_up starts one run of its agent once the signal is still unresolved after after_minutes. Both count against the agent’s daily cap (set_signal_agent_cap) and pass the same gate. A first dispatch is dropped when another signal messaged the person in the last 48 hours, and both wait while another signal may be messaging them now. They let agents message people without per-message approval, so confirm with the person you are working for before setting them.
Signal rules (event rules)
A signal rule turns a matching event into a signal. Tools:list_signal_rules, get_signal_rule, create_signal_rule, update_signal_rule, delete_signal_rule. Rule writes take effect at the next event after a cache of up to one minute turns over.
Every matching rule writes its own signal: rules are independent detectors, not a first-match pipeline. Two rules on the same event produce two signals, each deduplicated on its own.
list_signal_rules and get_signal_rule
list_signal_rules takes no arguments and returns { "rules": [...] } in display order. get_signal_rule returns { "rule": {...} } for one id, or not found if the rule is not in your org.
id, position, sent_count, undone_count and created_at.
create_signal_rule
Creates a rule. Onlyon_event and bucket are required; everything else has a default. Returns { "rule": {...}, "action": "created" | "updated" }.
If key matches an existing rule, that rule is replaced whole: fields you leave out are reset to their defaults, not kept. That makes creation with a key safe to retry. Without a key, every call creates a new rule. To change one field of an existing rule, use update_signal_rule.
on_event cannot be $fw_signal_created; a rule on it is refused.
update_signal_rule
Changes some fields of a rule. Passrule_id plus only the fields you want to change; omitted fields keep their stored value. Passing null clears the nullable fields (follow_up, handler_agent_id, occurrence, and also key, label, default_assignee_user_id, contact_reason). Returns { "rule": {...} }.
handler: "agent" with no agent, or a follow_up no longer shorter than expiry_minutes) is refused. Setting a key another rule already has is refused.
delete_signal_rule
Deletes a rule. Signals it already wrote keep their history (bucket, handler and rung live on each signal). Returns{ "deleted": true }. To stop a rule without losing it, use update_signal_rule with "enabled": false instead. That stops new signals; for the ones it already wrote, see Stop everything quickly.
Signal rule fields
Signal rule dedupe
dedupe on create_signal_rule / update_signal_rule decides what counts as the same signal. A repeat detection inside the window lands on the existing signal instead of opening a new one. Dedupe is always scoped to the rule.
Closing signals with resolve_on
resolve_on on a signal rule lists outcome events that close the rule’s signals for the same person as won when they arrive after the signal opened: open, drafted, awaiting approval or sent, including signals of a rule that has since been disabled. The signal’s history says the outcome arrived. Up to 8 entries, each { "event": "...", "filters": [...] } with up to 8 equality filters (op must be eq). A number and its decimal string compare equal ("80" matches 80). An entry with no filters matches any event of that name. $fw_signal_created cannot resolve a signal.
purchase_resolves: true only on rules whose point is causing a purchase. A churn-risk rule with it on would be marked won when the person buys something unrelated.
Review triggers
A review trigger summons the AI reviewer to look at a person when an event happens. Triggers do not write signals themselves; they book a review, and the review’s findings may become signals. Tools:list_review_triggers, create_review_trigger, update_review_trigger, delete_review_trigger.
Triggers only book reviews while the reviewer is on (reviewer_enabled) and the org has review allowance left (see get_reviewer_settings). Each trigger fire costs a review unless it is merged or skipped (see “Cost and volume”).
list_review_triggers
No arguments. Returns{ "triggers": [...] } in creation order, each with id, label, on_event, property_filters, occurrence, delay_minutes, focus, priority, enabled, created_at, updated_at.
create_review_trigger
Returns{ "trigger": {...} }. Only on_event is required.
update_review_trigger
Passtrigger_id plus the fields to change; omitted fields keep their value. occurrence: null and focus: null clear those fields. Returns { "trigger": {...} }.
delete_review_trigger
Deletes a trigger. Returns{ "deleted": true }.
Signal actions (the reviewer’s action catalog)
The action catalog is the closed set of verbs the AI reviewer may answer with, and how each verb’s signals are routed. Tools:list_signal_actions, create_signal_action, update_signal_action, delete_signal_action.
Every org starts with five shipped actions:
delivery decides what an admitted finding produces: signal writes a signal (the only outward path), watch sets a tripwire for a later review, none is recorded on the review log only.
guidance goes into the reviewer’s prompt verbatim, and the reviewer is told to follow it over its own reading of the verb’s name. Only enabled actions are offered to the reviewer; a finding naming a disabled or unknown action is dropped.
list_signal_actions
No arguments. Returns{ "actions": [...] } sorted by key, each with id, key, label, guidance, delivery, rung, rung_ceiling, enabled, handler, handler_agent_id, default_assignee_user_id, follow_up, sent_count, undone_count, created_at, updated_at.
create_signal_action
Adds a verb. Required:key (lowercase letters, digits and _, starting with a letter, up to 64 characters, unique in the org), label, delivery. Optional: guidance, rung (default draft), rung_ceiling (default auto), enabled (default true), handler (default human), handler_agent_id, default_assignee_user_id, follow_up. Returns { "action": {...} }.
rung_ceiling is fixed at creation and can never be raised. rung may not exceed it, and a signal is always born at the lower of the two. Choose the ceiling deliberately: below auto, neither the action’s own agent (the signal’s rung stays below auto) nor a follow_up (refused on such an action, and ignored if one is stored anyway) ever starts on its signals by itself. A workflow or agent you trigger on $fw_signal_created still runs for them; filter a workflow on rule_key.
update_signal_action
Changes routing or guidance. Passaction_id plus fields to change: label, guidance, delivery, rung, enabled, handler, handler_agent_id, default_assignee_user_id, follow_up (null clears it). rung_ceiling cannot be changed. Switching handler to human without passing handler_agent_id drops the agent. Returns { "action": {...} }.
Route agent_draft to an agent at the auto rung (from then on, each finding of this action starts the agent, within its daily cap):
delete_signal_action
Deletes a verb. Permanent: the shipped catalog is only seeded when an org’s catalog is empty, so a deleted shipped verb does not come back. Findings that name it are dropped. To stop the reviewer using a verb reversibly, useupdate_signal_action with "enabled": false. Returns { "deleted": true }.
Event dictionary
The event dictionary says what each event means to the AI reviewer. Itssalience is the most consequential reviewer setting you have: it decides what the reviewer’s dossier keeps. Tools: list_event_dictionary, update_event_dictionary.
Events are classified automatically (by AI, and by a stats pass that demotes an event one person fires more than 500 times in 7 days). Operator edits outrank both.
list_event_dictionary
Returns{ "events": [...], "total": N } sorted by event name, including Flywheel’s shipped $fw_* classifications. query is a case-insensitive substring of the event name; limit defaults to 200, maximum 1000. total counts all matches, so a total above your limit means there are more.
update_event_dictionary
Classifies one event as an operator. Passevent_name and at least one of description, salience, category, expected_next (null clears it). The edit sets admin_verified and salience_source: "operator", so later AI and stats passes will not overwrite it. Returns { "event": {...} }.
Reviewer settings
The AI reviewer’s org-level settings, plus where the org stands against its review allowance. Tools:get_reviewer_settings, update_reviewer_settings.
get_reviewer_settings
No arguments. Returns{ "reviewer": {...} }:
update_reviewer_settings
Pass only the fields to change; omitted fields keep their value. Returns{ "reviewer": {...} } with the fresh allowance.
allowance before enabling: every review is a paid model call that counts against it.
Settings changes reach the event path within about a minute.
Signal agents and their caps
Agents are built in the Flywheel dashboard’s agent builder. The MCP tools only read them and set how many signals each may be handed. Tools:list_signal_agents, set_signal_agent_cap.
list_signal_agents
No arguments. Returns{ "agents": [...] }, each with id, name, status, version, signal_daily_dispatch_cap and signal_dispatches_today (signal runs started for this agent since 00:00 UTC). Call this before routing anything to an agent: the id is what handler_agent_id and follow_up.agent_id take.
set_signal_agent_cap
Sets how many signals one agent may be handed per UTC day, counting first dispatches and follow-ups together. Range 0-1000; the default for a new agent is 25.0 means the agent is never handed signals. Requires agents.write. Returns { "agent": {...} }. Past the cap, signals wait rather than being dropped. A held first dispatch is retried every five minutes until the signal is a day old, so it goes out once the next UTC day starts. A held follow-up stays due. A signal still held a day after it was written is left for your team.
handler: "agent" with rung: "auto".
Signal producers
Producers are the deterministic signal detectors:event_rules (all your signal rules) and webinar_session_ended (the post-webinar queue). Tools: list_signal_producers, set_signal_producer_status. The AI reviewer is not a producer here; its switch is reviewer_enabled in update_reviewer_settings.
list_signal_producers
No arguments. Returns{ "producers": [{ "key", "configured", "status" }] }. status is active, paused or archived. configured: false means the detector has never run or been toggled for this org; it reads as active, which is what it will be when it first fires.
set_signal_producer_status
Pauses or resumes one detector. A paused detector writes no signals: no event rule fires, and the webinar build skips.status is active or paused. Returns the full producer list.
event_rules is the fastest way to stop every rule at once without editing or deleting any of them. It stops new signals, not what the ones already written still do: see Stop everything quickly.
The $fw_signal_created event
$fw_signal_created is the event Flywheel records once for each new signal it does not hold, on the signal’s contact, so that workflows (playbooks) can react to it. It carries the signal’s routing: signal_id, producer, rule_key (the rule’s key, or the reviewer action’s key), rule_id, bucket, handler, handler_agent_id, rung, contact_reason, observation, priority, angle, action, trigger_event_name and expires_at, plus the signal’s facts as fact_<name> properties. A workflow triggered on it runs for every new signal in the org, so give a rule its own playbook with a filter step on rule_key right after the trigger. An email or text step in such a workflow that reaches the signal’s contact marks the signal as sent, which holds the person for 48 hours. A smart message step is not recorded. Route agents with handler: "agent" on a rule or action rather than an agent trigger on $fw_signal_created: a triggered agent is not held by the daily cap or the gate, though its sends are recorded. See /mcp/workflows for workflows in general.
The name is already protected: $fw_signal_created is refused as a signal rule’s on_event, as a resolve_on event, and as a review trigger’s on_event.
Cost and volume
What spends money (review allowance) and what creates more signals. Changes that increase reviews (cost):update_reviewer_settingswithreviewer_enabled: true. Nothing is reviewed while it is off.- Each
create_review_trigger. Every matching event books a review. Several bookings for one person merge into one pending review, and a review insidereviewer_debounce_minutesof the last one is canceled before the model runs. priority: "critical"on a trigger, which skips the debounce.update_event_dictionarywithsalience: "critical", which books a review on every occurrence of that event.- Lowering
reviewer_debounce_minutesorreviewer_staleness_days.
- A new or enabled signal rule, especially on a frequent event with no
filtersoroccurrence. - A narrower
dedupe(eventinstead ofcalendar), or a longerexpiry_minutes(more signals open at once). - A higher
reviewer_max_findings, or a new action withdelivery: "signal". - Resuming a paused producer.
enabled: false on a rule, trigger or action; queue: false on a rule; set_signal_producer_status to pause event_rules; “reviewer_enabled: false`.
Side effects on real people
Signal configuration changes what lands in your team’s signals list and what the AI reviewer looks at, and three kinds of setting message people with nobody approving each message:handler: "agent"withrung: "auto"on a rule or action (create_signal_rule,update_signal_rule,create_signal_action,update_signal_action): starts the agent on every new signal, up to its daily cap.- A
follow_upon a rule, or on an action whoserung_ceilingisauto: starts an agent on every signal still unresolved afterafter_minutes, whatever the signal’s rung, under the same cap. - A workflow triggered on
$fw_signal_created: runs for every new signal, and its send steps message the person.
set_signal_agent_cap first. Signals pass one gate between them: one signal message per person per 48 hours, across every rule, the reviewer and the webinar queue, except a playbook send that comes late (see the note at the top). One signal’s own agent and its own playbook are not gated against each other. So don’t give a rule’s signals both an agent at auto and a playbook that sends. An agent’s email also skips anyone who opted out of marketing email.
The rest decides which people your team is asked to contact (rules, actions and producers, and default_assignee_user_id for who), and how many paid reviews run (reviewer settings, triggers and dictionary salience).
Common tasks
Flag accounts that keep hitting a limit
1
Check the event and its properties
Call
list_event_dictionary with { "query": "hit_limit" } to confirm the event exists and how it is named. Rule filters read event properties, so make sure the property you filter on (here limit) is sent on the event.2
Create the rule with a key
Call
create_signal_rule with key, bucket, on_event, filters, an occurrence and a dedupe, routed to a human. The key makes the call safe to retry.3
Pick the expiry and outcome
Set
expiry_minutes to how long the signal is worth working. If the rule’s point is a purchase, set purchase_resolves: true so a purchase closes it as won.Route a rule’s signals to an agent
From the moment a rule is routed to an agent at theauto rung, each new signal it writes starts that agent.
1
Pick the agent and set its cap
Call
list_signal_agents, choose the agent, and call set_signal_agent_cap with a conservative cap such as { "agent_id": "...", "signal_daily_dispatch_cap": 10 }.2
Route the rule
Call
update_signal_rule with { "rule_id": "...", "handler": "agent", "handler_agent_id": "..." }. Leave rung at draft unless the person you are working for has confirmed they want the agent to act without approval; then add "rung": "auto".Turn on the AI reviewer
1
Check the allowance
Call
get_reviewer_settings. If allowance.reason is not_on_plan, the AI Reviewer add-on is needed first.2
Write the org brief
Call
update_reviewer_settings with an org_brief: what you sell, who your customers are, what activation and expansion look like.3
Tune the catalog
Call
list_signal_actions and adjust guidance with update_signal_action so each verb says when your team wants it used. Route agent_draft to an agent if you have one.4
Classify the events that matter
Use
update_event_dictionary to mark key events notable, demote chatter to noise, and add expected_next for the steps of your funnel.5
Add triggers and switch it on
Create one or two review triggers with
create_review_trigger, then call update_reviewer_settings with { "reviewer_enabled": true }.Ask the reviewer to check new signups after a day
Callcreate_review_trigger:
Teach the reviewer your funnel
Callupdate_event_dictionary for each step, with expected_next pointing at the step after it. An unmet step becomes an absence fact in the dossier once the window passes.
Stop everything quickly
Pausing a producer, disabling a rule or switching the reviewer off stops new signals only. Signals already written keep acting: an agent dispatch that is waiting (on the cap, the gate or a paused agent) is retried, a scheduledfollow_up still runs, and a signal waiting on another is still announced to playbooks. To stop all of it:
- New signals:
set_signal_producer_statuswith"status": "paused"forevent_rulesandwebinar_session_ended, andupdate_reviewer_settingswith{ "reviewer_enabled": false }for the reviewer. - Agents:
set_signal_agent_capwith0for each agent inlist_signal_agents. That holds every first dispatch and follow-up until you raise the cap again; a held first dispatch is retried only until its signal is a day old. Switching an agent off in the dashboard holds its signals the same way. - Playbooks:
set_workflow_statuswith"status": "paused"for each workflow triggered on$fw_signal_created. - An agent triggered on
$fw_signal_createdis held by neither the cap nor the gate: switch it off in the dashboard.
cancel_run stops a workflow run.
Mistakes to avoid
- Calling
create_signal_rulewith an existingkeyto change one field. It replaces the rule whole and resets every field you left out to its default. Useupdate_signal_rule. - Calling
create_signal_rulewithout akeyon retry. Each call creates another rule. Give rules akey. - Filtering a rule on a person property.
filtersandproperty_filtersread the event’s properties only. - Routing to an agent without setting its cap first. The default cap is 25 per UTC day. Set it with
set_signal_agent_capbeforerung: "auto"goes on. - A
follow_uplonger thanexpiry_minutes. Refused by validation. - Marking a frequent event
criticalin the dictionary. Every occurrence books a review. Usenotable. - Classifying events before they have been sent.
update_event_dictionaryreturns not found for an event your org has never sent. - Deleting a shipped action to stop the reviewer using it. Deletion is permanent and it is never re-seeded. Set
enabled: falseinstead. - Choosing
rung_ceilingloosely on a new action. It can never be raised later, and belowautoit is the guarantee that neither the action’s own agent nor a follow-up ever starts by itself. - Using
purchase_resolveson a rule unrelated to buying. Any purchase marks its signals won. - Expecting a rule edit to apply instantly. Rules are cached for up to a minute; the next event after that sees the change.
- Building a rule on
$fw_signal_created, or a playbook on it with norule_keyfilter. A rule on it is refused. A workflow on it with no filter runs for every new signal in the org. - Expecting two signals for one person to both reach them. A new signal is dropped (
suppressed: no playbook, no agent) within 48 hours of another signal’s message to that person. It waits while another signal for them may still be messaging them. - Giving a rule both an agent at
autoand a playbook that sends. Both act on each of its signals, and the person gets two messages. - Inventing ids. Agent, team member, segment, rule, trigger and action ids come from the list tools here, from /mcp/people for people and segments, and must belong to your org.