Skip to main content
Glama

Describe a BigQuery table

bq_table_describe
Read-only

Inspect a BigQuery table or view to see its columns, types, modes, descriptions, row count, and defining SQL before writing queries or adding it as a data source.

Instructions

Shows a table or view: full name, kind, description, row count (plain tables only) and its fields with type, mode (when not NULLABLE) and description, RECORD sub-fields indented. For a view or materialized view, the SQL that defines it is shown at the end. Use it to learn column names and types before writing a query or adding the table as a data source.

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": {
      "dataset_id": "<dataset_id>",
      "table_id": "<table_id>"
    },
    "name": "bq_table_describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
table_idYesTable or view name as BigQuery shows it; spaces and dashes are fine, e.g. "4 Demo".
dataset_idYesDataset id (letters, digits and underscores), e.g. "analytics_123456".
project_idNoGoogle Cloud project id, e.g. "my-project". Defaults to billing_project in the config, then the project of the Application Default Credentials.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only assert readOnlyHint=true, so the description carries the rest and it delivers real behavioral detail: row count appears for plain tables only, mode is shown only when not NULLABLE, RECORD sub-fields are indented, and view SQL is appended for views and materialized views. It does not cover failure modes or required permissions for reading view metadata, which keeps it at 4.

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

Conciseness5/5

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

Two tight sentences: the first front-loads what is returned, the second gives the usage trigger. Every clause carries information, including the qualifiers on row count and mode.

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, the description is the only source for return shape and it covers that thoroughly, including view-specific SQL output. A read-only three-parameter tool needs little more; only error/not-found behavior and access requirements are left unstated.

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 coverage is 100%, with table_id, dataset_id, and project_id each documented including a fallback chain for project_id. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

The description names a specific verb and resource ('Shows a table or view') and enumerates exactly what is surfaced: full name, kind, description, row count, and fields with type/mode/description. That precision makes it distinguishable from bq_table_list and bq_query_run without opening the schema, though no sibling is named explicitly.

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?

It gives a concrete use case: 'learn column names and types before writing a query or adding the table as a data source,' which clearly places it before bq_query_run and as the follow-up to bq_table_list. No explicit when-not or named alternatives, so it stops short of a 5.

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