GovTribe

Automation MCP response

MCP tool response returned by the Search automations, Create automation, and Update automation MCP tools.

Response Shape

The returned automation record can include identity fields, the current prompt and reasoning level, completion email settings, ordered start nodes, run-history snapshots, and status metadata.

FieldTypeNotes
govtribe_idstringGovTribe ID for the automation. Pass this value into workflow_id for update, delete, or test-run calls.
govtribe_typestringGovTribe record type for the automation row.
govtribe_urlstringGovTribe URL for the automation detail page.
namestringAutomation name.
promptstringPrompt GovTribe AI runs whenever any start node fires.
reasoning_levelstringReasoning used for automation runs. Values are none, low, medium, and high.
on_completion_notify_userstringCompletion email setting. Values are always, conditionally, and never.
completion_notification_instructionsstring or nullCondition and email-writing guidance for the completion email.
start_nodesobject arrayOrdered start triggers. Each item contains a stable ID and a round-trippable public definition.
total_triggers_countintegerComplete number of start triggers, including any omitted from a truncated search response.
trigger_detailsobject or nullCompatibility snapshot of the first ordered start node. Use start_nodes for complete trigger inspection and edits.
statestringCurrent automation state such as published, paused, or broken.
paused_atstringConditional field returned when the automation is paused.
version_numberintegerActive automation version number. Pass it as expected_version_number when updating.
last_ran_atstring or nullStart time of the most recent run.
govtribe_ai_project_namestring or nullName of the linked GovTribe AI project.
created_atstringAutomation creation timestamp.
updated_atstringAutomation update timestamp.
total_runs_countintegerTotal number of recorded runs for the automation.
past_runsobject array or nullMost recent run snapshots. Each item includes id, state, is_user_initiated_test, started_at, finished_at, and memory.
broken_detailsobjectConditional field returned when the active automation version is broken. Includes what_happened and how_to_fix.

Start node fields

Every item in start_nodes describes one independent condition that can run the same saved prompt.

FieldTypeNotes
start_node_idstringStable ID used by Update_Automation start-node operations and multi-trigger Test_Run_Automation calls.
trigger_typestringTrigger identifier such as trigger-schedule or trigger-entity-activity.
trigger_configobjectPublic configuration accepted by create and update operations for this trigger type.
summarystringCustomer-facing description of the start condition.
Schedule detailsmixedSchedule items can include frequency, timezone, rrule, time_of_day, day_of_week, and next_run_at.
Saved-search detailsmixedSaved-search items include the scoped saved_search, independent lowercase frequency, and nullable next_run_at. The next run is present only while the workflow version is published. Their trigger_config includes saved_search_model_id and the same frequency.
Other event detailsmixedOther event items can include target, pipeline, stage, or direction, depending on the trigger type and scope.

For trigger-entity-activity, target contains the selected record's govtribe_type, govtribe_id, and display label. Its trigger_config contains the round-trippable target_govtribe_type and target_govtribe_id.

Follow-up Behavior

Search_Automations returns only govtribe_id when you omit fields_to_return.

When you request start_nodes, search also returns total_triggers_count. Search embeds up to three start nodes by default; raise max_triggers when the returned list is shorter than the total. Create and update responses return the complete ordered start-node list.

Use start_nodes[].start_node_id with start_node_changes when updating one trigger. Always send the current version_number as expected_version_number. Use the same stable ID as start_node_id when a manual test must choose among several start conditions.

trigger_details remains available for older integrations, but it describes only the first start node and is not a complete multi-trigger contract.

For trigger-saved-search-results, frequency is the automation trigger's polling cadence, not the saved search's email cadence. It remains unchanged when saved-search email preferences change. next_run_at is null while the workflow version is paused, suspended, broken, archived, or draft. Publishing schedules a fresh next run from the publication time; resuming also resets the listening checkpoint to the resume time, without replaying earlier results.

Request on_completion_notify_user and completion_notification_instructions before changing completion email behavior. Omit both fields on update to preserve the existing setting, or set on_completion_notify_user to never to turn completion emails off.

Request reasoning_level before changing it. Create defaults the field to low; update preserves the saved value when the field is omitted. A later message sent manually in the generated conversation uses the owner's personalization reasoning effort instead.

Search_Automations uses past_runs_limit to decide whether past_runs is present. Set past_runs_limit to 0 when you do not want embedded run history.

When an automation is paused or broken, GovTribe includes paused_at or broken_details even when those state-specific fields were not requested.

Example

{
  "govtribe_id": "AUTOMATION_ID",
  "govtribe_url": "https://govtribe.com/workspace/WORKSPACE_ID/oai-response/automations/AUTOMATION_ID",
  "name": "Award change and recompete monitor",
  "prompt": "Monitor this award for material changes and credible follow-on signals.",
  "reasoning_level": "low",
  "on_completion_notify_user": "conditionally",
  "completion_notification_instructions": "Email me only when the change affects capture timing or recommended action.",
  "start_nodes": [
    {
      "trigger_type": "trigger-entity-activity",
      "summary": "When \"Facilities support award (Award #W1234567890)\" changes",
      "target": {
        "govtribe_type": "federal_contract_award",
        "govtribe_id": "AWARD_ID",
        "label": "Facilities support award (Award #W1234567890)"
      },
      "start_node_id": "RECORD_CHANGE_START_NODE_ID",
      "trigger_config": {
        "target_govtribe_type": "federal_contract_award",
        "target_govtribe_id": "AWARD_ID"
      }
    },
    {
      "trigger_type": "trigger-schedule",
      "summary": "Mondays at 9:15 AM",
      "frequency": "weekly",
      "timezone": "America/New_York",
      "rrule": "RRULE:FREQ=WEEKLY;BYDAY=MO;BYHOUR=9;BYMINUTE=15",
      "time_of_day": "09:15",
      "day_of_week": "MO",
      "next_run_at": "2026-07-20T13:15:00Z",
      "start_node_id": "SCHEDULE_START_NODE_ID",
      "trigger_config": {
        "rrule": "RRULE:FREQ=WEEKLY;BYDAY=MO;BYHOUR=9;BYMINUTE=15",
        "rrule_timezone": "America/New_York"
      }
    },
    {
      "trigger_type": "trigger-saved-search-results",
      "summary": "When \"Healthcare IT recompetes\" saved search has new results (checked weekly)",
      "saved_search": {
        "govtribe_id": "SAVED_SEARCH_ID",
        "govtribe_type": "saved_search",
        "name": "Healthcare IT recompetes"
      },
      "frequency": "weekly",
      "next_run_at": "2026-07-23T14:00:00Z",
      "start_node_id": "SAVED_SEARCH_START_NODE_ID",
      "trigger_config": {
        "saved_search_model_id": "SAVED_SEARCH_ID",
        "frequency": "weekly"
      }
    }
  ],
  "total_triggers_count": 3,
  "trigger_details": {
    "trigger_type": "trigger-entity-activity",
    "summary": "When \"Facilities support award (Award #W1234567890)\" changes",
    "target": {
      "govtribe_type": "federal_contract_award",
      "govtribe_id": "AWARD_ID",
      "label": "Facilities support award (Award #W1234567890)"
    }
  },
  "state": "published",
  "version_number": 5,
  "last_ran_at": "2026-07-13T15:05:00Z",
  "govtribe_ai_project_name": "Recompete Watch",
  "created_at": "2026-07-01T13:15:00Z",
  "updated_at": "2026-07-13T14:00:00Z",
  "total_runs_count": 4
}