Skip to main content
Glama
Semantic Rails MCP Server

Semantic Rails MCP Server

Official

profile_columns

Read-onlyIdempotent

Computes per-column counts, min/max values, and optional samples while sampling large tables to inspect data distribution and quality in read-only mode.

Instructions

Per-column counts, min/max and up to 20 samples (sample_limit=0 for none), sampling tables above max_rows (at most one million). Read-only.

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": {
      "relation": "<relation>"
    },
    "name": "profile_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
columnsNo
max_rowsNo
relationYes
duckdb_pathNo
full_reportNotrue: every item, unpaged
project_pathNo
sample_limitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.4
    • addedInput schema / properties / full_report
      Added value: +{
      +  "default": false,
      +  "description": "true: every item, unpaged",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Addedv0.3.1

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds genuine behavior beyond that: sampling tables over max_rows, a hard cap of one million rows, and the sample_limit=0 escape hatch. It says nothing about cost, latency, or how paging interacts with sampling, which for a 9-parameter tool leaves meaningful gaps.

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?

Dense and front-loaded in a single sentence, with the highest-value facts (outputs, sampling, row cap) stated first and no filler. The phrasing is slightly telegraphic ('sampling tables above max_rows'), which costs a point on readability.

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?

An output schema exists, so return values needn't be explained, and the description covers the key behavioral knobs. However, for a 9-parameter tool with near-zero schema coverage, it is silent on most inputs and on how paging and full_report interact, leaving the definition only partially complete.

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

Parameters2/5

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

Schema description coverage is only 11% (just full_report), so the description carries most of the burden. It clarifies sample_limit and max_rows semantics but says nothing about limit, offset, columns, relation, duckdb_path, or project_path, so most parameters remain undocumented in both places.

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?

Names a specific operation (per-column profiling) and enumerates the outputs: counts, min/max, and up to 20 samples. It does not explicitly contrast with describe_table or preview_query, but the resource and result shape are concrete enough to distinguish it.

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

Usage Guidelines2/5

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

No when-to-use guidance is given: nothing says when to profile rather than call describe_table, preview_query, or validate_project. The only routine hint is the parenthetical that sample_limit=0 disables sampling, and the 'Read-only' note, which is already implied by annotations.

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