Skip to main content
Glama
Blujay MCP Server

Blujay MCP Server

Official
by blujayhq

Start a workflow for a contact

enroll_in_workflow

Enroll a contact in a Blujay workflow to begin its text sequence using a contact ID and workflow ID; only manually started workflows are eligible.

Instructions

Enroll one contact in a Blujay workflow, which starts its sequence of texts to them. This sends a real text to a real person; there is no test mode. Look the contact up first with find_contacts (or create them with save_contact) to get their contact_id, and get the workflow_id from list_workflows. Only workflows that start manually can be enrolled; a tag-triggered workflow starts when you tag the contact with save_contact. A contact who opted out is never enrolled, and a contact already in an unfinished run of the workflow isn't enrolled twice. request_id makes retries safe: the same request_id never enrolls the contact twice. Leave it out and this server reuses one for the same workflow and contact for 10 minutes; pass a new one only when the user really wants the contact enrolled again.

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": {
      "workflow_id": "<workflow_id>",
      "contact_id": "<contact_id>"
    },
    "name": "enroll_in_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
metadataNoOptional notes stored with the enrollment, such as its source. Up to 20 keys. Workflow steps can't read it and it doesn't change what's sent.
contact_idYesFrom find_contacts or save_contact.
request_idNoYour ID for this enrollment, such as a signup or order ID. Sending it again returns the first result instead of enrolling twice.
workflow_idYesFrom list_workflows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare it is not read-only, is open-world, and is not inherently idempotent. The description adds significant context beyond that: it sends a real text with no test mode, opted-out contacts are silently skipped, contacts already in an unfinished run are not re-enrolled, and the request_id dedupe window (10 minutes by default) is spelled out. This extra behavioral detail — especially the request_id idempotency semantics — is exactly what the annotations do not convey, and nothing contradicts the stated hints.

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?

The definition is front-loaded with the action and its real-world side effect, then follows with prerequisites, exclusions, and idempotency. It is dense but almost every clause carries actionable information; the long final sentence on request_id is slightly heavy but justified given it controls retry safety.

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?

For a stateful, externally-visible action with four parameters and no output schema, the description covers the action, prerequisites, side effects, silent-skip conditions, and retry/idempotency behavior. An agent has enough to call it correctly without inferring anything from siblings.

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 description coverage is 100%, so the baseline is 3 and the schema already documents contact_id, workflow_id, metadata, and request_id. The description still adds real meaning beyond the schema by explaining the default request_id reuse behavior (same workflow + contact for 10 minutes) and when to intentionally pass a new one, which the schema's brief description does not state.

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?

The opening clause names a specific verb (enroll), a specific resource (one contact in a Blujay workflow), and the consequence (starts its sequence of texts). An agent can immediately distinguish this from sibling tools like save_contact or list_workflows without inspecting the schema.

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?

The description gives explicit prerequisites and orders the workflow: look up contact_id with find_contacts or save_contact, get workflow_id from list_workflows. It also states exclusions — only manually-starting workflows qualify, and tag-triggered workflows must go through save_contact instead — which is exactly the when-not-to-use guidance an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.