Skip to main content
Glama

profile_tables

Read-only

Profiles database tables by computing row counts, candidate keys, column types, null rates, distinct values, and uniqueness to assess data quality and structure.

Instructions

Profile every table: row counts, candidate keys, and per column its type, null rate, distinct values and uniqueness.

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_id": "<project_id>"
    },
    "name": "profile_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes

Output Schema

NameRequiredDescriptionDefault
tablesYes
overlapsYesValue overlaps found between columns of different tables
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

readOnlyHint=true already signals a safe read operation, and the description is consistent with that. It adds genuine behavioral context by clarifying the scope ("every table") and what is computed, but is silent on the likely cost/time of profiling an entire project and any limits on table count or size.

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?

A single front-loaded sentence with the verb first and a dense but readable list of outputs. No filler; every clause carries information. Slightly dense but efficient.

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 the return shape need not be explained, and the safety profile is covered by annotations. The remaining gap is the unexplained project_id scoping and the absence of any note on the expense of profiling all tables, which matters for a tool that may process a whole project.

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 0% for the sole parameter project_id, so the description must compensate, but it never mentions project_id or clarifies that "every table" means every table within that project. The key scoping parameter is undocumented in both schema and description.

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?

States a specific verb ("Profile") and resource ("every table") and enumerates the outputs computed: row counts, candidate keys, and per-column type, null rate, distinct values, uniqueness. An agent knows exactly what it produces. It does not distinguish itself from any sibling, but no sibling is a direct profiling alternative, so this is strong but not maximal.

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?

The description only describes what the tool does; it gives no when-to-use context, no prerequisites, and no indication of when a different tool (e.g. get_dashboard, get_check_results) would be more appropriate. Usage is left entirely to inference.

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