Skip to main content
Glama
RawTree MCP Server

RawTree MCP Server

Official
by rawtreedb

Describe Table

describe-table

Inspect a table's columns, row count, byte count, sorting key, database, and organization to verify schema before writing SQL or troubleshooting missing-column errors.

Instructions

Purpose: Inspect a RawTree table's columns, row count, byte count, sorting key, database, and organization.

NOT for: Sampling actual row values. Use run-query for SELECT queries.

Returns: Table metadata and columns under table. sorting_key is a comma-separated SQL expression string, empty when the table picks a key per part from the ingested data. ttl is the stored row-deletion expression or null. settings lists explicit {name, value} entries with SQL values and secrets masked by the engine.

When to use:

  • You need to know available fields before writing SQL

  • A query fails because a column may not exist

  • You just inserted data and want to inspect the dynamic schema

  • You want the current sorting key before changing it with update-table

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": {
      "table": "<table>"
    },
    "name": "describe-table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name to describe.
clusterNoName or ID of the cluster to use for this operation.
databaseNoOptional RawTree database override. RawTree uses the default database when omitted.
organizationNoName or ID of the organization containing the target cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.10
    • changedInput schema / properties / cluster / description
      Previous value: -"RawTree cluster to use for this operation."New value: +"Name or ID of the cluster to use for this operation."
    • changedInput schema / properties / organization / description
      Previous value: -"RawTree organization containing the target cluster."New value: +"Name or ID of the organization containing the target cluster."
  2. Changed4 schema fields changedv0.3.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / cluster
      Added value: +{
      +  "description": "RawTree cluster to use for this operation.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / database
      Added value: +{
      +  "description": "Optional RawTree database override. RawTree uses the default database when omitted.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / organization
      Added value: +{
      +  "description": "RawTree organization containing the target cluster.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explains return semantics (sorting_key as a comma-separated SQL expression that is empty when per-part keys are picked, ttl as a stored expression or null, settings masked by the engine). It stops short of explicitly declaring the operation read-only, stating permission requirements, or describing failure behavior for a missing table or cluster.

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 bold-labeled sections (Purpose, NOT for, Returns, When to use) front-load the most decision-relevant information and make it scannable. It is longer than strictly necessary for a four-parameter metadata read, but nearly every sentence — particularly the sorting_key and ttl semantics — earns its place.

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

Completeness4/5

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

With no output schema and no annotations, the description compensates by explicitly documenting the shape and edge-case semantics of the returned metadata. The main residual gap is operational context: whether the call is read-only, what credentials or scopes are needed, and how errors surface — none of which are covered elsewhere.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters (table, cluster, database, organization) are already documented in the input schema. The description adds no meaning beyond that — it mentions the database default and organization context only in the purpose sentence, which the schema already states. Baseline 3 applies.

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 description opens with a specific verb ("Inspect") applied to a specific resource (a RawTree table) and enumerates exactly what metadata is returned: columns, row count, byte count, sorting key, database, organization. This is clearly distinguishable from siblings like run-query or update-table.

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 contains an explicit "NOT for" exclusion that names the alternative (run-query for SELECT queries), plus a four-bullet "When to use" list covering schema discovery, column-not-exist failures, post-insert inspection, and pre-update sorting key checks. Both the positive and negative selection conditions are stated.

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