Skip to main content
Glama

Sergio by Serviche

Start a flow on a client's conversation

assign_flow
Idempotent

Starts a flow on a client's conversation, as the Inbox's Start a flow (or Assign & clear on the conversation list) does. flowId names an active flow (read('flows')); give conversationId, or a clientId and Sergio finds or opens that client's thread. clear true takes the thread out of Needs Attention in the same move (it is refused with the reason while the client is owed a reply). deadline_overrides moves named steps' deadlines by index. The run starts only after its steps are in place; it sends nothing on its own. start_conversation_flow is the thread's own flow picker; this one also reaches a client with no open thread. Pass the same idempotency_key when retrying; a repeat returns the same 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": {
      "flowId": "<flowId>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "assign_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoAlso clear the thread out of Needs Attention, as Assign & clear does.
flowIdYes
clientIdNoStart on this client's thread (found, or opened if none). Give this, or conversationId.
variant_keyNoA variant to start, when the flow defines variants.
conversationIdNoThe thread to start the flow on. Give this, or clientId.
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.
deadline_overridesNoMove named steps' deadlines, keyed by step index.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare non-read-only but non-destructive and idempotent; the description adds behavior those hints cannot express: the run "starts only after its steps are in place; it sends nothing on its own," clear is conditionally refused with a stated reason, and "a repeat returns the same run." These are exactly the side-effect and failure-mode facts an agent needs before invoking a 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?

One dense paragraph, but front-loaded with purpose and the sibling differentiation before descending into parameter specifics. Every sentence carries information; the mild cost is that the idempotency and clear caveats are buried mid-paragraph rather than separated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With seven parameters including a nested object and no output schema, the description covers the mutation semantics, precondition failure, and retry contract thoroughly. It stops short of saying what a successful run response contains beyond "the same run" on retry, which is the only material omission for a tool with no output schema.

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 86%, so the baseline is 3, and the description still adds value: flowId must name an active flow (pointing at read('flows')), clientId will open a thread if none exists, clear interacts with Needs Attention state, and deadline_overrides is keyed "by index" of named steps. It does not explain the variant_key parameter at all, which is the one remaining gap beyond the schema.

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?

Opens with a specific verb and resource ("Starts a flow on a client's conversation") and immediately anchors it to a concrete UI analogue (Inbox's Start a flow / Assign & clear). It explicitly separates itself from the nearest sibling: "start_conversation_flow is the thread's own flow picker; this one also reaches a client with no open thread."

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 the selection rule between the two addressing parameters ("give conversationId, or a clientId and Sergio finds or opens that client's thread") and the named alternative for the in-thread case. It also states the precondition for clear (refused "while the client is owed a reply") and the retry rule for idempotency_key, so an agent knows both when to call it and how to repeat safely.

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