Skip to main content
Glama

Enroll contact in an automation

enroll_automation

Start an automation for a contact, locate it by automation_id or automation_name (case-insensitive; names come from list_automations) and the contact by contact_id or email. Google steps (Gmail send, Calendar event, Drive file, Sheets row) do NOT run immediately: they come back in pending_google_approvals with status awaiting_approval until the account owner approves them in the app.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "enroll_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoThe contact email address. Use to locate a contact when you do not have its id, or to set a new email on update_contact.
contact_idNoThe contact id (uuid) from find_contact / list_contacts / search_leads.
automation_idNoAutomation id (uuid), or use automation_name.
automation_nameNoAutomation name, case-insensitive match against list_automations.

Output Schema

NameRequiredDescriptionDefault
okNo
errorNoPresent only when ok is false.
run_idNo
statusNo
enrollment_idNo
google_writesNo
pending_google_approvalsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / automation_id / description
      Previous value: -"Automation id (uuid) — or use automation_name."New value: +"Automation id (uuid), or use automation_name."
    • changedInput schema / properties / automation_name / description
      Previous value: -"Automation name — case-insensitive match against list_automations."New value: +"Automation name, case-insensitive match against list_automations."
  2. Changed2 schema fields changed
    • addedOutput schema / properties / google_writes
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / pending_google_approvals
      Added value: +{
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the write nature and open-world behavior, and the description adds genuinely new context: Google steps (Gmail, Calendar, Drive, Sheets) are deferred and surface in pending_google_approvals with status awaiting_approval until a human approves in the app. That is a non-obvious, high-value behavioral disclosure. It stops short of explaining duplicate-enrollment behavior, which matters given idempotentHint=false and a retry-prone agent.

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?

Two sentences, front-loaded with the action, then the entity-resolution rules, then the approval caveat in descending priority. The second sentence is long but every clause carries distinct information about approval gating rather than padding.

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

Completeness3/5

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

An output schema exists, so return values need no explanation here. However, with 0 required parameters and two complementary identifier pairs, the description should state the minimum required combination; without that, an agent can plausibly call it with no arguments. The approval behavior is well covered, but this calling-condition gap leaves the definition only adequate for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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. The description reinforces the case-insensitive name matching and adds the provenance hint that names come from list_automations, which is mild added meaning. It adds no syntax or precedence rules for the id-versus-name alternatives beyond what the schema already states.

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 'Start an automation for a contact' names a specific verb and resource, and the description immediately narrows the scope to entity resolution by automation_id/automation_name and contact_id/email. It also points to the sibling list_automations as the source of names, so an agent can distinguish this tool from pure-lookup siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful lookup guidance ('names come from list_automations', locate the contact by id or email) but never states when to use this tool versus alternatives, nor when not to. With zero required parameters, the description never says whether at least one automation identifier and one contact identifier must be supplied, leaving the primary calling condition implicit.

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