Skip to Content
Judgment Labs
Reference

MCP tools

Every tool on the Judgment MCP server, with its scope, minimum role and arguments.

The Judgment MCP server gives coding agents and other MCP clients read and write access to one organization's projects. To set it up in Codex, Claude Code, or Cursor, see Connect your coding agent.

Endpoint

ItemValue
URLhttps://mcp.judgmentlabs.ai
TransportStreamable HTTP, stateless. POST only; other methods return 405.
AuthAuthorization: Bearer <token>. The token is an OAuth access token or a Judgment API key. A request without a bearer token gets an OAuth challenge.
OAuthOAuth 2.1 with PKCE (S256), issued by https://auth.judgmentlabs.ai.
HealthGET /health

Headers

HeaderRequiredValue
AuthorizationYesBearer <oauth-token-or-api-key>
X-Organization-IdNoOrganization ID. On an API-key connection, binds the connection to one organization, so tools don't need organization_id. An OAuth connection is already bound to the organization you chose when you authorized.
X-Project-IdNoProject ID (UUID). Binds the connection to one project. On an API-key connection, send it with X-Organization-Id.

A malformed X-Project-Id returns 400. X-Project-Id without X-Organization-Id on an API-key connection returns 400. On an OAuth connection, an X-Organization-Id or X-Project-Id that differs from the authorized organization or project returns 400.

Scope and roles

Each tool has a scope and a minimum organization role.

ScopeMeaning
AccountWorks for any signed-in user.
OrganizationTakes organization_id, unless the connection is bound to an organization.
ProjectTakes organization_id and project_id, unless the connection is bound. Bound fields are removed from the tool's input schema and filled in by the server.

Roles from lowest to highest are Viewer, Developer, Admin, and Owner. Viewers can call read tools and save their own personal views. Other writes need Developer. Deleting a test config needs Admin. On an OAuth connection, tools above your role are not listed. See Members and roles.

A connection bound to one project (by X-Project-Id or a project-scoped OAuth grant) hides organization and account tools, except list_organizations, discover_schema, get_billing_usage, list_invoices, search_docs, and read_doc_page.

Some API and SQL names, such as the behavior_id argument, still say behavior; it means label.

Tools

The arguments column lists each tool's own inputs; ? marks an optional argument. Organization-scoped tools also accept organization_id?, and project-scoped tools accept organization_id? and project_id?; these are not repeated in the tables. evaluate_traces and evaluate_all_traces are enabled per organization; contact support to turn them on. They are listed only on a connection bound to that organization.

New internal judges (executed by Judgment) are categorical: create_judge takes judgeType prompt (Agent judge), custom (Code judge), or deterministic, and at least two outputs (exactly two for deterministic, match first, then miss). Use get_judge_label and update_judge_label for labels; get_judge_result, get_behavior_detail, update_judge_result, and update_behavior still work as deprecated aliases.

Organizations

ToolScopeMinimum roleArgumentsWhat it does
list_organizationsAccountAny username?, member_only?, limit?, offset?Organizations you belong to (judgment admins see all), with your role and project and member counts.

Projects

ToolScopeMinimum roleArgumentsWhat it does
create_projectOrganizationDevelopernameCreate a project.
list_projectsOrganizationViewernoneProjects in the organization, with summary counts.

Billing

ToolScopeMinimum roleArgumentsWhat it does
get_billing_usageOrganizationViewernoneCurrent billing period's Judgment unit (JU) meter, included JUs and credits, billable JUs, price per JU, usage limits, and manual contract charges, as shown in billing settings.
list_invoicesOrganizationViewernonePast invoices, newest first, with amount paid, status, billing period, JU totals, and price per JU.

SQL

ToolScopeMinimum roleArgumentsWhat it does
discover_schemaOrganizationViewernoneMarkdown reference for the SQL tables, columns, examples, and limits. Call before sql_query.
sql_queryProjectViewersqlRun one read-only SELECT against the project. Up to 1,000 rows and 5 MiB. Leaves out the Test Runs environment (test_run).

Dashboards

A custom dashboard is a grid of charts, 12 columns wide. Most are saved SQL charts. Built-in charts have no SQL: update_dashboard_chart can move their tiles but not edit them. get_dashboard returns every chart with its SQL (null for built-in charts), presentation, revision, and placement. Saving a chart runs its SQL once and rejects a query that fails or lacks a column the chart names. See Build custom dashboards.

ToolScopeMinimum roleArgumentsWhat it does
create_dashboardProjectDevelopername, description?, default_time_range?Create an empty dashboard.
create_dashboard_chartProjectDeveloperdashboard_id, title, sql_query, chart_type, description?, x_axis?, y_axis?, series_by?, columns?, display?, sql_headline_query?, time_range?, render_options?, width?, height?Save a SQL chart and place it in the first free spot on the dashboard. chart_type is bar, line, area, pie, or table; display: "stat" draws a headline number and needs sql_headline_query.
get_dashboardProjectViewerdashboard_idOne dashboard with every chart on it.
list_dashboardsProjectViewernoneDashboards in the project, active first.
remove_dashboard_chartProjectDeveloperdashboard_id, chart_idRemove a chart from a dashboard and archive it.
update_dashboardProjectDeveloperdashboard_id, name?, description?, default_time_range?, status?, make_default?Rename a dashboard, change its time range, archive (status: "archived") or restore it, or make it your default.
update_dashboard_chartProjectDeveloperchart_id, expected_revision, title?, description?, sql_query?, chart_type?, x_axis?, y_axis?, series_by?, columns?, display?, sql_headline_query?, time_range?, render_options?, placement?Edit a chart or move and resize its tile. Omitted fields keep their values. Pass the revision from get_dashboard as expected_revision.

time_range is 1h, 12h, 24h, 7d, 30d, or all (dashboard on a chart follows the dashboard's range). render_options sets horizontal, stacked, value_labels, cumulative, y_label, and series_tones.

Saved views

A saved view stores a filter set, sort, and column layout for the traces, sessions, or spans tab of Monitoring, and appears in that tab's views menu. Any member can save a personal view; org-wide views (visibility: "org") need Developer. Only a view's author can edit or delete it, and changing an org-wide view needs Developer. config takes filters (each a field, op, and value), sort (field and direction), and optionally columns and, for traces, attributeColumns. A config that doesn't fit the tab is rejected with the first field that's wrong.

ToolScopeMinimum roleArgumentsWhat it does
create_saved_viewProjectViewerobject_type, name, visibility, config, description?Save a view of the traces, sessions, or spans tab.
delete_saved_viewProjectViewersaved_view_idDelete a view you authored.
get_saved_viewProjectViewersaved_view_idOne view with its config.
list_saved_viewsProjectViewerobject_typeYour personal views and the organization's views for one tab, most recently updated first, up to 200, with your default view.
update_saved_viewProjectViewersaved_view_id, name?, description?, visibility?, config?Rename a view, change its description or visibility, or replace its config. Omitted fields keep their values.

Trace health and evaluation

ToolScopeMinimum roleArgumentsWhat it does
evaluate_all_tracesProjectDeveloperjudge_names?, limit?Queue judges to run on the most recent traces (default 100, max 1,000). Enabled per organization; contact support to turn it on.
evaluate_tracesProjectDevelopertrace_ids, judge_names?Queue judges to run on specific traces. Enabled per organization; contact support to turn it on.
get_trace_healthProjectViewertrace_id, category?Check results for one trace.
get_trace_health_summaryProjectViewercategory?, start_time?, end_time?Check status and failure rates for a time range of up to 31 days.
list_trace_health_failuresProjectViewercategory?, check_id, start_time?, end_time?, limit?, cursor_trace_started_at?, cursor_trace_id?Traces failing one check in a time range.

Conversation health

ToolScopeMinimum roleArgumentsWhat it does
get_conversation_health_summaryProjectViewerstart_time?, end_time?Count retained outcomes by overall status and individual check.
list_conversation_health_findingsProjectViewerreason, severity?, start_time?, end_time?, cursor_conversation_id?List representative findings for up to five conversations per page. Use the returned window and next_cursor to continue.
get_conversation_health_comparisonProjectViewertarget_conversation_id, previous_observation_id, current_observation_id, reason, expand_context?Compare the original recorded calls and retrieve the steps relevant to the finding.

Summary and finding windows use when the conversation was first observed. They default to the past 24 hours and support up to 31 days. Use the conversation ID, observation IDs, and reason from a finding or a copied remediation prompt to open a comparison.

The comparison expands annotated steps and groups other recorded steps into ranges. To retrieve a range, pass its side, section, zero-based start_index, and count in expand_context. A request can expand up to four ranges of 50 steps each. When aligned is false, the comparison could not reliably determine what changed.

Issues

ToolScopeMinimum roleArgumentsWhat it does
create_issueProjectDeveloperissue_key?, title, diagnosis, impact_summary?, priority?, production_activity?, agent_reasoning?, cited_itemsCreate an Issue backed by cited evidence. A duplicate issue_key returns a conflict.
get_issueProjectViewerissue_idOne Issue with its cited evidence and event history.
list_issuesProjectVieweruser_status?, production_activity?, priority?Issues in the project, filterable by review status, activity, and priority.
update_issueProjectDevelopertitle?, diagnosis?, impact_summary?, priority?, production_activity?, agent_reasoning?, cited_items?, issue_id, user_status?, judge_id?, behavior_id?, message?Edit an Issue, comment on it, or change its review status (needs_review, ignored, merged, monitored). resolved is set by the system.

Judges

ToolScopeMinimum roleArgumentsWhat it does
create_judgeProjectDeveloperjudgeCreate an Agent judge, a Code judge (uploaded bundle), a deterministic judge, or an external judge for customer-submitted results, with its first production version. The judge type can't change later.
delete_judgeProjectDeveloperjudge_idDelete a judge and the labels that belong to it.
get_judgeProjectViewerjudge_id, include_code_url?, version?One version of a judge (latest by default), with its definition, outputs, and settings. For a Code judge, include_code_url returns a temporary download link for its bundle.
list_judge_versionsProjectViewerjudge_idA judge's versions, newest first, with latest and production flags.
list_judgesProjectViewerversion?, summary?Judges in the project (latest version, or version: "production" for production judges and their enabled labels). summary: true returns only IDs, names, types, versions, and online-evaluation settings.
update_judgeProjectDeveloperjudge_id, updateEdit the description, or create a new version and optionally promote it to production. update.newVersionFromSource copies an existing version and changes only the fields you set; a Code judge keeps its bundle unless you send a new one.
promote_judge_versionProjectDeveloperjudge_id, major, minorMake an existing version the production version.
review_judge_verdictProjectDeveloperjudge_id, trace_id, span_id?, agrees, correct_label?, comment?Save whether a person agrees with a judge's verdict on a trace or session, and the label they say is right when they don't. Reviews appear on the judge's Alignment tab.
list_judge_action_groupsProjectViewerversion?Action groups owned by judges, with group IDs and the judge version they belong to (production by default, or latest).
set_judge_action_groupsProjectDeveloperjudge_id, source_version, target_version, promote_to_production, action_groups, clear_all_action_groups?Replace a judge's action groups by creating a new judge version. Pass the complete list; omitted groups are removed. An empty list needs clear_all_action_groups: true. Call list_judge_action_groups first.

To define an external judge for feedback, pass executionMode: "external". External judges accept binary, numeric, or categorical scores; categorical judges require at least two predefined outputs. For example:

{
  "judge": {
    "name": "User frustrated",
    "executionMode": "external",
    "initialVersion": { "scoreType": "binary" }
  }
}

Submit scores through the SDK or API. MCP evaluation tools do not execute external judges. See logging feedback.

Labels

ToolScopeMinimum roleArgumentsWhat it does
get_judge_labelProjectViewerbehavior_id, start_date?, end_date?Rate, last-applied time, and time series for one label on a production judge. Aliases: get_judge_result, get_behavior_detail.
update_judge_labelProjectDeveloperbehavior_id, description?Edit a label description. Aliases: update_judge_result, update_behavior.

Datasets

ToolScopeMinimum roleArgumentsWhat it does
add_examples_to_datasetProjectDeveloperdataset_id, examplesAdd examples. Creates a new dataset version.
create_datasetProjectDevelopername, schema, examples?Create a dataset with a JSON Schema and optional examples.
delete_datasetProjectDeveloperdataset_idDelete a dataset. Also deletes its test configs and run metadata.
get_datasetProjectViewerdataset_id?, name?, version?, limit?, cursor_created_at?, cursor_example_id?One dataset (by ID or name) and a page of its examples.
list_datasetsProjectViewernoneDatasets with schema, example count, and current version.
remove_examples_from_datasetProjectDeveloperdataset_id, example_idsRemove examples. Creates a new dataset version.

Test suites

Case edits land in the suite's draft, which update_test_case and remove_test_case open automatically. publish_test_suite freezes the draft as a version that runs use. A case names a test environment in metadata.environment.

ToolScopeMinimum roleArgumentsWhat it does
add_test_casesProjectDevelopertest_suite_id, casesAdd cases to the draft: an input for the agent plus what each judge should return.
add_test_environment_versionProjectDevelopername, description?, definitionAdd the next version of a test environment. Earlier versions never change. Early access: enabled per organization; contact support to turn it on.
compare_test_suite_runsProjectViewerrun_idsPass rates per check and tag in each run.
create_test_environmentProjectDevelopername, description?, definitionCreate a test environment as version 1: canned tool results and starting data for cases to run in. Early access: enabled per organization; contact support to turn it on.
create_test_suiteProjectDevelopername, description?, labels?Create an empty test suite.
delete_test_suiteProjectDevelopertest_suite_idDelete a test suite with its cases, versions, and runs.
discard_test_suite_draftProjectDevelopertest_suite_idThrow away every unpublished change to the suite, including other people's.
get_test_environmentProjectViewername, versionOne version of a test environment with its definition. Early access: enabled per organization; contact support to turn it on.
get_test_suite_runProjectViewerrun_idA run's case counts. Poll this while a run is in progress.
get_test_suite_run_resultsProjectViewerrun_id, failed_only?, judge_id?, offset?, limit?Run progress and each case's checks, judge outputs, and pending checks.
list_test_casesProjectViewertest_suite_id, version?, offset?, limit?Cases at a published version or the draft.
list_test_environmentsProjectViewernoneThe latest version of each test environment, without definitions. Early access: enabled per organization; contact support to turn it on.
list_test_suite_runsProjectViewertest_suite_id?, offset?, limit?Runs newest first, with pass and fail counts.
list_test_suitesProjectVieweroffset?, limit?Test suites with draft state and recent runs.
publish_test_suiteProjectDevelopertest_suite_idPublish the draft as a new version.
remove_test_caseProjectDevelopertest_suite_id, case_idRemove a case from the draft.
repin_test_suite_checksProjectDevelopertest_suite_id, judge_id, judge_major_version, judge_minor_versionMove one judge's checks in the draft to another version of that judge.
score_test_suite_runProjectDeveloperrun_idScore a run's traces again in a new run with the latest published version.
start_test_suite_runProjectDevelopertest_suite_id, case_filter?, candidate?, candidate_meta?Start a run and get each case's input, trace headers, and test environment.
update_test_caseProjectDevelopertest_suite_id, case_id, name?, input?, expected?, tags?, metadata?Change fields of a case in the draft.

Tests

These dataset test tools are deprecated: they're listed only for organizations with legacy tests enabled, and they stop working for every organization on November 12, 2026. Use the test suite tools instead.

ToolScopeMinimum roleArgumentsWhat it does
cancel_test_runProjectDevelopertest_run_idCancel a pending or running test run.
create_test_configProjectDevelopername, description?, dataset_id, judge_idsPair a dataset with judges.
delete_test_configProjectAdmintest_config_idDelete a test config and its run metadata.
get_test_runProjectViewertest_run_idStatus and metadata for one test run.
get_test_run_itemsProjectViewertest_run_id, limit?, cursor?Per-example results and scores for one test run.
list_test_configsProjectViewerdataset_id?Test configs (a dataset paired with judges).
list_test_runsProjectViewertest_config_id?, dataset_id?, status?, limit?Test runs, newest first.
run_testProjectDevelopertest_config_id, dataset_version_number?, judge_versions?Queue a test run that scores every example with every judge in the config.
update_test_configProjectDevelopertest_config_id, name?, description?Rename a test config. The dataset and judges are fixed.

Scheduled tasks

A scheduled task (formerly called a scheduled agent) is a custom agent. These tools use the same permissions as the Scheduled page: anyone with Developer access can create a task, and only its author or an organization admin can edit it.

ToolScopeMinimum roleArgumentsWhat it does
create_scheduled_taskProjectDevelopername, description?, instructions?, mode?, tool_permission_mode?, environment_names?, schedule?, slack_channel_ids?Create a scheduled task.
get_scheduled_taskProjectViewertask_idOne scheduled task with its instructions, environments, schedule, and Slack delivery.
list_scheduled_tasksProjectViewernoneScheduled tasks in the project.
update_scheduled_taskProjectDevelopertask_id, name?, description?, instructions?, mode?, tool_permission_mode?, environment_names?, schedule?, slack_channel_ids?Edit a scheduled task. Send at least one field. An empty slack_channel_ids stops Slack delivery.

mode is fast or deep_research. tool_permission_mode is auto_require_permission (ask before write actions) or always_accept. environment_names lists the environments the task focuses on, with "" for traces sent without one; it narrows the task's searches and isn't an access control. An empty list, the default, reads every environment. schedule is { enabled, cadence?, timezone? }; timezone is an IANA name and defaults to Pacific Time (America/Los_Angeles), the zone the Scheduled page uses. Leaving out cadence keeps the saved one, so { "enabled": false } pauses a task. A cadence is a daily or weekly time (frequency, hour, minute, and dayOfWeek or daysOfWeek), an interval (mode: "interval", every, and unit of minutes from 15 to 1440 or hours from 1 to 24), or a five-field cron expression (mode: "cron", cronExpression).

Agent Knowledge

ToolScopeMinimum roleArgumentsWhat it does
list_memory_entriesProjectViewernonePaths of Agent Knowledge files and folders.
read_memory_filesProjectViewerids?, names?Read Agent Knowledge files by ID or path.
search_memory_filesProjectViewerquery, limit?Search Agent Knowledge files by path and body.
write_memory_fileProjectDevelopername, bodyCreate or update one Agent Knowledge file by path.

Attribute mappers

ToolScopeMinimum roleArgumentsWhat it does
create_mapperProjectDevelopername, rules, enabled?, override?, remove_source?Create an attribute mapper. Org-wide mappers need a Judgment admin.
delete_mapperProjectDeveloperconfig_idDelete an attribute mapper.
get_mapperProjectViewerconfig_idOne attribute mapper.
list_mappersProjectViewernoneAttribute mappers for the project, including org-wide mappers.
update_mapperProjectDeveloperconfig_id, name?, rules?, enabled?, override?, remove_source?Edit an attribute mapper.

Docs

ToolScopeMinimum roleArgumentsWhat it does
read_doc_pageAccountAny userrouteRead one Judgment docs page as Markdown.
search_docsAccountAny userquery, contentTypes?, limit?Search the Judgment docs.

Skills

A skill is a step-by-step procedure for a common job, such as configuring a judge or investigating production Issues. The server instructions list the skills and when each applies.

ToolScopeMinimum roleArgumentsWhat it does
get_skillAccountAny usernameRead one skill's instructions as Markdown.

Retired tools

These tools were removed in September 2026. Calling one returns Tool <name> not found.

Retired toolUse instead
search_traces, get_trace_detail, get_trace_spans, get_trace_span, read_span_attribute, get_trace_tags, get_trace_behaviorssql_query on telemetry.traces, telemetry.spans, telemetry.scores, telemetry.trace_tags
search_sessions, get_session_detail, get_session_trace_ids, get_session_behaviors, get_session_trace_behaviorssql_query, grouping telemetry.traces by session_id
get_test_run_graphsql_query on evaluations.items
list_agent_memory_entries, fetch_agent_memory_files, search_agent_memory_files, write_memorylist_memory_entries, read_memory_files, search_memory_files, write_memory_file
write_issues, ignore_issue, reopen_issue, write_issue_comment, monitor_issue_with_judgecreate_issue, update_issue
delete_judgesdelete_judge

For the SQL tables, see SQL schema.

On this page