Skip to main content
Glama
Semantic Rails MCP Server

Semantic Rails MCP Server

Official

validate_project

Read-onlyIdempotent

Validate a semantic package across parse, runtime, examples, tests, impact, and release modes to catch broken measures, metrics, or queries before trusting analytics answers.

Instructions

Validate the package: mode parse, runtime, examples, tests, impact or release. Use parse after each change and runtime (compiles and queries every measure and metric) before trusting answers. Gotcha: runtime, examples, tests and release query the warehouse and may build a seeded DuckDB file; impact needs compare_path or base_ref.

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": {
      "project_path": "<project_path>"
    },
    "name": "validate_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoparse
pageNoa path from the summary's pages
limitNo
offsetNo
base_refNo
environmentNo
full_reportNotrue: the whole report, not a summary
compare_pathNo
project_pathYes
expected_revisionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.3.4
    • addedInput schema / properties / expected_revision
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
    • changedInput schema / properties / full_report / description
      Previous value: -"true: the whole report (default: a summary; see its report field)"New value: +"true: the whole report, not a summary"
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "default": "",
      +  "description": "a path from the summary's pages",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.2
    • addedInput schema / properties / full_report
      Added value: +{
      +  "default": false,
      +  "description": "true: the whole report (default: a summary; see its report field)",
      +  "type": "boolean"
      +}
  3. Changed7 schema fields changedv0.3.1
    • removedInput schema / properties / base_ref / title
      Removed value: -"Base Ref"
    • removedInput schema / properties / compare_path / title
      Removed value: -"Compare Path"
    • removedInput schema / properties / environment / title
      Removed value: -"Environment"
    • removedInput schema / properties / mode / title
      Removed value: -"Mode"
    • removedInput schema / properties / project_path / title
      Removed value: -"Project Path"
    • removedInput schema / title
      Removed value: -"validate_projectArguments"
    • removedOutput schema / title
      Removed value: -"validate_projectDictOutput"
  4. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is known; the description adds real value by warning that runtime, examples, tests, and release hit the warehouse and may build a seeded DuckDB file, which is cost/latency information an agent cannot get from annotations. The file-building side effect sits in mild tension with readOnlyHint, but it is a local cache artifact rather than a mutation of user data, so this is context rather than a contradiction.

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?

Three tight sentences, front-loaded with the purpose and modes before the usage advice and the caveat. The "Gotcha:" framing is informal but efficient; nothing is redundant.

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

Completeness3/5

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

For a 10-parameter tool with 20% schema coverage, the description covers the highest-risk semantics (mode values and conditional arguments) and an output schema exists to explain returns. However, several parameters and the behavioral difference between examples, tests, and release remain undocumented, so an agent still has to guess at parts of the call surface.

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?

Schema coverage is only 20% and mode has no enum, so the description carries most of the weight: it names the valid mode values and states the conditional requirement that impact needs compare_path or base_ref. It leaves environment, expected_revision, and the page/limit/offset paging parameters unexplained, so it does not fully close the coverage gap.

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

Purpose4/5

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

"Validate the package" states a specific verb and resource, and the description immediately enumerates the six modes (parse, runtime, examples, tests, impact, release), which tells an agent exactly what surface the tool covers. It stops short of distinguishing itself from siblings such as impact_project or diff_project, which overlap with the impact mode.

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

Usage Guidelines4/5

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

Gives concrete when-to-use guidance for the two most common modes: parse after each change, runtime before trusting answers. The trailing gotcha adds a prerequisite for impact (compare_path or base_ref). It does not say when to prefer examples, tests, or release over each other, so the routing is only partially covered.

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