/mlflow:mlflow-trace-retrievalfrom MLflow Skills
Retrieves MLflow traces by ID or searches by run, session, user, status, time, tags, feedback, or span fields. Useful for trace lookup and filtering without diagnosis.
Ships in MLflow Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reuse the configured tracking URI, experiment, supplied trace ID or filters, and incident/run time window. Check installed CLI flags with mlflow traces get --help or mlflow traces search --help for the operation selected.
For Databricks UC traces, first read Databricks tracing setup: trace retrieval requires the configured SQL warehouse and workspace authentication. Do not replace missing warehouse access with direct SQL, raw REST, or pasted tokens.
With an ID, fetch directly. Save full JSON to a file before parsing so large output is not lost to tool truncation. get already outputs JSON; it needs no --output flag.
mlflow traces get --trace-id <TRACE_ID> > /tmp/trace.json
Without an ID, search the selected experiment and requested time window:
mlflow traces search --experiment-id <EXPERIMENT_ID> \
--filter-string 'metadata.`mlflow.trace.session` = "<SESSION_ID>" AND trace.timestamp_ms >= <START_MS> AND trace.timestamp_ms <= <END_MS>' \
--order-by 'timestamp_ms ASC' --max-results 50 --output json > /tmp/traces.json
trace.timestamp_ms lower bound; add an upper bound when known.Combine predicates with AND; verify operators supported by the installed backend/version.
| Selection | Predicate or flag |
|---|---|
| Run | --run-id <RUN_ID> (combine with time bounds) |
| Status | trace.status = 'ERROR' (OK, IN_PROGRESS also available) |
| Time / latency | trace.timestamp_ms >= 1700000000000, trace.execution_time_ms > 1000 (milliseconds) |
| Session / user | metadata.`mlflow.trace.session` = 'abc', metadata.`mlflow.trace.user` = 'user1' |
| Tags / metadata | tag.environment = 'production', metadata.`user.id` = 'abc' |
| Span | span.name = 'lookup', span.type = 'RETRIEVER' |
| Assessments | feedback.rating = 'positive', expectation.<name> = <value> |
| Text | trace.text LIKE '%error%' |
Backticks quote special characters in field names. In shell commands put the outer expression in single quotes, as above, or escape backticks inside double quotes to prevent command substitution. Escape filter values separately; do not interpolate untrusted values as shell syntax. LIKE, ILIKE and RLIKE support pattern matching where permitted; use search docs for exact field/operator support.
Use --include-spans when details are needed; otherwise fetch selected IDs after search. --extract-fields can reduce search output after inspecting the actual schema, but nested span inputs/outputs may be omitted: use the full trace for diagnosis. Follow returned continuation tokens with --page-token while keeping filters/order fixed; report a bounded sample as a sample, not all matches.
trace = mlflow.get_trace(trace_id)
# Or search when the ID is unknown:
traces = mlflow.search_traces(
locations=[experiment_id],
filter_string=f"trace.timestamp_ms >= {start_ms} AND trace.timestamp_ms <= {end_ms}",
max_results=50, return_type="list", include_spans=True,
)
Check installed signatures; older versions may use experiment_ids. search_traces() has no start_time keyword. Use filter_string for timestamp predicates.
Confirm returned IDs, experiment/location, window and filters match the request; distinguish no matches from a failed query or partial page. Return the IDs/output file and any coverage limits. Do not infer quality from status OK alone.
For newly added instrumentation only: enforce a 60-second wall-clock deadline including flush/readback/internal retries, terminating the command at expiry. Fetch one captured ID or make one run-time-bounded search with max_results=1. Inspect expected spans and actual inputs/outputs; retry at most once after a quick concrete fix within the original budget. Stop on auth/provider-key/permission/warehouse blockers and report the failed operation and required prerequisite. No parallel searches, repeated agent runs, direct SQL, raw REST or alternate-auth fallbacks. This setup limit does not replace the scope of a dedicated retrieval/investigation request.
mlflow-trace-analysis; retrieval alone stops with the requested evidence.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/mlflow-agentMaster dispatcher for all MLflow workflows. Use this skill when the user wants to do anything with MLflow — tracing, evaluating, debugging, or improving an agent. Routes to the right MLflow sub-skill automatically. Triggers on: "use mlflow", "help with mlflow", "mlflow agent", "add mlflow to my project", "trace my agent", "evaluate my agent", or any MLflow task without a specific skill in mind.
/mlflow-agent-improvementFix or change an AI agent's behavior using MLflow traces and regression tests. Use for wrong answers, missing tool calls, new business rules, or context and token-cost optimization. Diagnose first, prove a regression fails, implement the smallest fix, and verify it passes without breaking existing behavior./mlflow-docsSearches and retrieves MLflow documentation from the official docs site. Use when the user asks about MLflow features, APIs, integrations (LangGraph, LangChain, OpenAI, etc.), tracing, tracking, or requests to look up MLflow documentation. Triggers on "how do I use MLflow with X", "find MLflow docs for Y", "MLflow API for Z"./mlflow-evaluationDesign MLflow scorers and run GenAI evaluation on an agent, dataset, precomputed outputs, or traces. Use for quality criteria, judges, MemAlign, datasets, evaluation runs, and results analysis./mlflow-onboardingOnboards users to MLflow by determining their use case (GenAI agents/apps or traditional ML/deep learning) and guiding them through relevant quickstart tutorials and initial integration. If an experiment ID is available, it should be supplied as input to help determine the use case. Use when the user asks to get started with MLflow, set up tracking, add observability, or integrate MLflow into their project. Triggers on "get started with MLflow", "set up MLflow", "onboard to MLflow", "add MLflow to my project", "how do I use MLflow"./mlflow-sagemakerConnect to SageMaker Managed MLflow (mlflow-app or mlflow-tracking-server ARN) as an MLflow backend, then hand off to the other MLflow skills. Triggers on a SageMaker MLflow ARN (arn:aws:sagemaker:...:mlflow-app/... or arn:aws:sagemaker:...:mlflow-tracking-server/...) or "SageMaker Managed MLflow".
Generated from the plugin's indexed repository (mlflow/skills) — no native marketplace selected
npx claudepluginhub p/mlflow-mlflowOther plugins' skills for the same job