/gr:mlflow-tracesfrom gr
Queries, tags, evaluates, and manages MLflow traces from Gemini API calls via MCP tools. Covers search, feedback logging, custom scorers, and trace cleanup with field-path discipline.
Ships in gr. 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.
Query, tag, evaluate, and manage MLflow traces captured from video-research-mcp Gemini API calls. Uses mcp__mlflow-mcp__* MCP tools — no code writing needed for most operations.
Core principle: Search first, then act. Always verify before destructive operations.
| Task | Tool | Key Params |
|---|---|---|
| Find traces | search_traces | experiment_id, filter_string, extract_fields |
| Get details | get_trace | trace_id, extract_fields |
| Tag trace | set_trace_tag | trace_id, key, value |
| Log score | log_feedback | trace_id, name, value, rationale |
| Run scorers | evaluate_traces | experiment_id, trace_ids, scorers |
| List scorers | list_scorers | — |
CRITICAL — only use fields that actually exist:
| Path | Content | Common mistake |
|---|---|---|
info.trace_id | Trace identifier | — |
info.state | Status: OK, ERROR | NOT info.status |
info.request_time | Timestamp | NOT info.timestamp_ms |
info.execution_duration_ms | Duration in ms | NOT info.execution_duration |
info.request_preview | First ~100 chars of request | — |
info.response_preview | First ~100 chars of response | — |
info.tags | All tags as object | Use info.tags.* for all |
data.spans.*.name | Span names | Must include data. prefix |
data.spans.*.status_code | Span status | NOT data.spans.*.status |
data.spans.*.inputs | Span inputs | Moderate size |
data.spans.*.outputs | Span outputs | Moderate size |
Always use extract_fields. Video-research-mcp traces contain video URIs, cached content references, full Gemini prompts/responses. A single get_trace without extract_fields can flood your context window.
// BAD - pulls everything
get_trace({ trace_id: "tr-..." })
search_traces({ experiment_id: "2" })
// GOOD - selective fields
get_trace({ trace_id: "tr-...",
extract_fields: "info.*,data.spans.*.name,data.spans.*.status_code" })
search_traces({ experiment_id: "2", max_results: 10,
extract_fields: "info.trace_id,info.state,info.execution_duration_ms" })
Never request data.spans.*.attributes unqualified — it silently drops dotted keys and can contain massive payloads.
CRITICAL: filter_string and extract_fields use DIFFERENT field names:
| Data | filter_string syntax | extract_fields syntax |
|---|---|---|
| Status | status = 'ERROR' | info.state |
| Timestamp | timestamp_ms > 170000... | info.request_time |
| Duration | execution_time_ms > 5000 | info.execution_duration_ms |
| Tags | tags.reviewed = 'true' | info.tags.* |
search_traces({ experiment_id: "<id>", filter_string: "status='ERROR'", max_results: 20,
extract_fields: "info.trace_id,info.state,info.execution_duration_ms,info.request_preview" })
get_trace({ trace_id: "tr-abc123",
extract_fields: "info.*,data.spans.*.name,data.spans.*.status_code" })
set_trace_tag({ trace_id: "tr-abc123", key: "needs_investigation", value: "true" })
search_traces({ experiment_id: "<id>", filter_string: "execution_time_ms > 5000",
max_results: 20, extract_fields: "info.trace_id,info.execution_duration_ms,data.spans.*.name" })
log_feedback({ trace_id: "tr-abc123", name: "response_quality", value: 4.5,
source_type: "human", rationale: "Accurate analysis, good structure" })
// List available scorers first
list_scorers()
// Run evaluation
evaluate_traces({ experiment_id: "<id>", trace_ids: "tr-abc,tr-def",
scorers: "Correctness,RelevanceToQuery" })
// Step 1: Preview
search_traces({ experiment_id: "<id>", filter_string: "timestamp_ms < 1704067200000",
max_results: 10, extract_fields: "info.trace_id,info.request_time" })
// Step 2: Verify count and IDs, then delete
delete_traces({ experiment_id: "<id>", max_timestamp_millis: 1704067200000 })
"info.trace_id,info.state" // Minimal overview
"info.trace_id,info.execution_duration_ms,data.spans.*.name" // Performance
"info.*,data.spans.*.name,data.spans.*.status_code" // Full context (safe)
"info.trace_id,info.tags.*" // Tags only
"info.trace_id,info.assessments.*.feedback.value" // Feedback scores
| Setting | Value |
|---|---|
| Tracking server | Operator-selected URI; http://127.0.0.1:5001 is a loopback example |
| Experiment name | video-research-mcp |
| Env var | MLFLOW_TRACKING_URI |
| Autolog captures | All GeminiClient generate/generate_structured calls |
| Trace spans | Gemini API calls with model, thinking level, tokens, cost |
Tracing requires the installed tracing extra and a reachable MLFLOW_TRACKING_URI. GEMINI_TRACING_ENABLED=false disables it even with a URI. When enabled, mlflow.gemini.autolog() captures SDK calls; inspect actual retained traces before claiming coverage.
The MLflow tracking server must be running:
MLFLOW_TRACKING_URI=http://127.0.0.1:5001 mlflow server --port 5001
Then restart Claude Code to reconnect.
MLFLOW_TRACKING_URI is set in the server environmentmax_results: 1 across experiment IDsThe default experiment is video-research-mcp. If traces land in Default (experiment 0), the MLFLOW_EXPERIMENT_NAME env var is not set.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (galbaz1/video-research-mcp) — no native marketplace selected
npx claudepluginhub p/galbaz1-gr27 skills in this plugin
/av-eventsCaption, count or ground supported occurrences in exact local audio/video, or inspect timed musical sections with measured submitted evidence. Use the root AV tools and keep inferred semantics distinct from decoded clocks and physical truth./creative-concept-designDevelop distinct visual treatments for a video or explainer, select one for its audience, and hand an executable production brief to the existing media skills. Use before storyboarding or production when the creative approach is still open./educational-explainerProduce and restart-check the bounded first-party Verifying a diagram against its rule lesson as a self-contained interactive page and local video with an exact supplied WAV. Use source/analysis/script/storyboard and complete decoded evidence; arbitrary domains and multilingual/foreign templates remain outside this component./ffmpeg-productionFFmpeg video/audio processing — conversion, scaling, compression, trimming, concatenation, AI post-processing. Not for audio ducking/voice mixing (tts-production) or Remotion rendering./footage-editPrepare and assemble short edits from exact local source footage using measured frame lineage, scene revision approvals, contact previews and final technical gates./gemini-visualizeGenerates interactive HTML visualizations (concept maps, evidence networks, knowledge graphs) from Gemini analysis results. Use when the user requests a concept map, evidence network, or knowledge graph from completed analysis.Other plugins' skills for the same job