Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_model_validate

Runs a quick correlation-based sanity check on a model using your supplied hold-out data to catch obviously broken models and mark validation status on success.

Instructions

Run a quick correlation-based sanity check of a model against hold-out data you supply (not automatically split from training data -- you provide a separate dataset). This is a lightweight coverage/confidence check, not full cross-validation or backtesting; use it to catch an obviously broken model, not to certify accuracy.

Sets the model's status to "validated" on success -- you don't need to also call rca_model_update_status afterward, though you can still use that tool later to move it to "deployed", "deprecated", or "failed".

Args: params (ModelValidateInput): - model_id: the model to validate (from rca_model_create) - validation_data: {variable: [values]}, same shape as an rca_analysis_run payload's "data" field - target: which variable in validation_data to validate against

Returns: str: JSON {model_id, status, metrics: {coverage_pct, mean_abs_correlation, n_samples, correlations}}, or a not_found/bad_input error

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "params": "<params>"
    },
    "name": "rca_model_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.1.15
    • addedInput schema / $defs / ModelValidateInput / properties / client_id / description
      Added value: +"Client namespace ID"
    • addedInput schema / $defs / ModelValidateInput / properties / token / description
      Added value: +"API key to authenticate this request"
  2. Changed1 schema field changedv4.1.14
    • addedInput schema / $defs / ModelValidateInput / properties / model_id / description
      Added value: +"Model to validate (from rca_model_create)"
  3. First observedv4.1.13

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses the key side effect that the model's status becomes 'validated' on success, which an agent must know since readOnlyHint is false. It also discloses the important precondition that the data is not auto-split from training data and must be supplied separately. It does not touch idempotency or re-validation behavior, so it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical caveats are front-loaded ahead of the mechanics, and the Args/Returns structure is easy to scan. It is slightly longer than strictly necessary because the Returns section restates an output schema that is already published, but nothing is genuinely wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter wrapper over a validation routine, the definition covers purpose, limits, the status side effect, data shape expectations, and error modes. An agent has everything needed to call it correctly and to know when the result should not be trusted as certification.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The Args block adds real meaning beyond the schema: validation_data is described as the same shape as an rca_analysis_run 'data' field, and model_id is tied back to rca_model_create. The only parameters left unaddressed are token and client_id, which the schema itself documents adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource ('correlation-based sanity check of a model against hold-out data you supply') and immediately scopes it as a lightweight coverage/confidence check rather than full cross-validation. It also explicitly distinguishes itself from rca_model_update_status, which a sibling tool could otherwise be confused with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the when: catch an obviously broken model. It states the when-not: not full cross-validation, backtesting, or accuracy certification. It also clarifies the workflow sequencing against rca_model_update_status ('you don't need to also call ... afterward') and leaves the later status transitions to that tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools