mcp-server-best-practices

Installation
SKILL.md

Judgment MCP Server Best Practices

Default to MCP

Always use MCP tools first when the user asks about anything related to Judgment data — traces, behaviors, sessions, projects, automations, judges, prompts, datasets, tests, documentation, agent memory, agent threads, or organizations. Do not fall back to reading code or asking for IDs if an MCP tool can fetch the data directly.

Using search_traces Effectively

Prefer full-text search first

When looking for traces by content, always try full_text_search first before resorting to span_attributes_roots. Full-text search covers input/output of ALL spans in the trace plus span names — it's the broadest and fastest way to find relevant traces. Only fall back to span_attributes_roots if you need to match a specific structured attribute key that full-text search wouldn't cover (e.g., filtering on a metadata field like model_name or environment).

Batch queries: use queries array

search_traces accepts a queries array (1–10 queries per call). Each query has its own filters, time_range, and pagination. All queries run concurrently server-side. Always batch multiple searches into one search_traces call instead of making separate tool calls — this is faster and uses fewer round trips.

Filter reference

Each filter is an object with a field discriminator:

Installs
3
First Seen
Jul 28, 2026