Examples and Workflows
This page focuses on tool sequences rather than prompt phrasing. The MCP surface is most useful when the client chains a small number of LyftData tools against the correct environment.
Read-only inventory patterns
| Goal | Tool sequence | Result |
|---|---|---|
| List configured jobs | jobs_list -> job_show_rendered | Inventory the job set and inspect rendered job definitions |
| Find where a job runs | workers_with_job -> worker_connectivity_status_get | Identify attached workers and current connectivity |
| Inspect recent runtime evidence | workers_logs_recent -> job_notifications_recent | Pull logs and notification summaries without mutating anything |
| Check MCP process health | mcp_server_metrics | Confirm transport, write mode, timeout counts, and concurrency counters |
Rollout or slowdown investigation
Use a read-only session for the entire sequence:
- Call
deployments_listordeployment_getto identify the deployment under discussion. - Call
deployment_status_getfor current desired vs observed state. - Call
deployment_diff_since_last_applyto see what changed recently. - Call
deployment_signals_listanddeployment_lifecycle_warnings_getfor current warnings and signal state. - Call
workers_logs_recentandjob_notifications_recentfor recent evidence. - If the question is “did the slowdown start with the latest release?”, call
job_slowdown_release_correlation.
This sequence avoids mutation while still grounding the answer in deployment state, worker evidence, and notification history.
Job authoring sequence
Run this against a non-production environment or an isolated authoring profile:
- Use
spec_searchandspec_item_getto inspect the current DSL surface. - Use
job_template_listandjob_template_getto find a starting template. - Use
job_auto_detect,job_auto_detect_sample, orjob_auto_detect_filewhen the first draft should be inferred from sample data. - Use
job_yaml_previewto render the draft output. - Use
job_lintto validate the job before any staging or deployment step. - Use
job_show_renderedto inspect the final rendered configuration the server will evaluate.
Controlled write sequence
Split analysis and mutation into separate processes:
- In a read-only session, inspect the target with
job_show_rendered,deployment_status_get, and any relevant notification or log tools. - In a separate
--allow-writesession, perform the approved mutation with the narrowest tool possible, such asjob_stage,job_deploy,deployment_action_enqueue, ordeployment_apply_with_refresh. - Re-run
deployment_status_get,deployment_signals_list, andjob_notifications_recentimmediately after the change. - If activity forwarding is enabled, use the UI activity feed to review the recent tool metadata for that write-enabled session.
Trigger registry (dynamic tools)
If your environment has published Triggers with MCP enabled, your MCP client will discover additional tools named trigger_invoke__*. These calls dispatch real runtime messages, so they require a write-enabled MCP session.
- Start MCP with
--allow-writeand refresh the tool list in your assistant. - Invoke a trigger tool, for example
trigger_invoke__smoke_trigger, with its schema-defined parameters. - Use
trigger_invocation_getwith the returnedinvocation_idto poll until you see a terminal state.
Session split pattern
| Session | Typical flags | Typical tools |
|---|---|---|
| Production read-only | --profile prod --stdio | deployments_list, deployment_status_get, workers_logs_recent, job_notifications_recent |
| Staging authoring | --profile staging --stdio | spec_search, job_template_list, job_yaml_preview, job_lint |
| Controlled change window | --profile ops --stdio --allow-write --activity-forward --activity-session-label ops-change-window | job_stage, job_deploy, deployment_action_enqueue, deployment_apply_with_refresh |
This split keeps production inspection, authoring, and live mutation in separate trust domains even when all three sessions run on the same machine.