Skip to main content
Glama

Sergio by Serviche

Run a Trigger on upcoming bookings now

run_flow_now
Idempotent

Runs a live Trigger on your company's upcoming bookings now, as Run now on the Automations page does: it applies this flow's saved Starts when and Only if rule to visits that have not started yet, so bookings made before the flow existed get their steps too. Each booking gets ONE run ever: a booking that already has a run (a message that went out, or a run in progress) gets nothing, so running again is safe and picks up anything left. Steps handled by your team become tasks; a step Sergio handles messages that client on its own, exactly as the page's Run now does, under the business's Sending setting (Sergio never turns Sending on for you, and this never bypasses it). Start with dryRun true to answer how many bookings would start and whether Sergio may message them, and change nothing; preview and run are two different calls, so give each its own idempotency_key. Only a published Trigger that starts on New job booked offers Run now: a draft must be published first (set_flow_on), and a Trigger on another event or on Every upcoming job is refused with the reason. flow_id comes from read('flows'). Tell your person the count and, when Sergio would message clients, that they will be messaged, before the real run.

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": {
      "flow_id": "<flow_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "run_flow_now"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNotrue answers how many upcoming bookings would start and whether Sergio would message them, and changes nothing.
flow_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes far past the annotations (readOnlyHint=false, idempotentHint=true): it explains the one-run-ever-per-booking rule that makes reruns safe, what happens to team steps versus Sergio-handled messages, that the business Sending setting is respected and never bypassed, and that dryRun changes nothing. These are exactly the side-effect details an agent needs before a live mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense and front-loaded — it opens with what the tool does, then consequences, then prerequisites, then the dryRun workflow. Nearly every clause carries distinct information, though the single unbroken paragraph and long compound sentences make it harder to scan than it could be.

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?

With no output schema, the description still covers what dryRun returns (how many bookings would start and whether Sergio would message them), what a real run produces, refusal cases, and the instruction to report the count to the user. Nothing an agent needs to invoke this correctly is missing.

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 67% with dryRun and idempotency_key already documented, yet the description still adds meaning: flow_id provenance from read('flows') and the non-obvious rule that preview and run are separate operations each needing a fresh idempotency_key. Only the format-level detail is left to the schema, which is appropriate.

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?

States a specific verb and resource (run this flow's saved Trigger against upcoming bookings now) and pins the exact scope: visits that have not started yet. It also implicitly separates itself from set_flow_on (publishing) and try_flow_trigger by describing a live run on real bookings rather than a test.

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?

Gives explicit prerequisites and exclusions: only a published Trigger that starts on 'New job booked' offers Run now, a draft must first be published via set_flow_on, and other trigger types are refused. It also prescribes the correct call sequence — dryRun true first, then a separate real run with its own idempotency_key.

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