Skip to main content
Glama

List Tables for SQL Queries

link_tables
Read-onlyIdempotent

The tables link_query can read and the keys that join them: datasets to lookup tables to Census geography. With no arguments, a short index: each dataset's table name for SQL (e.g. 'education.attendance', its default detail level), what one row is (grain), detail levels, and join keys, plus each lookup table's name (e.g. 'dimensions.districts'). tables (names from the index, e.g. 'education.attendance', 'education/gosa/attendance', 'attendance', or 'districts') returns those tables in full: every column and a table name per detail level ('education.attendance__districts'). main_topic limits either form to one subject area.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "link_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
tablesNoTables to return in full. Omit for the short index.
main_topicNoOnly datasets in this subject area. Omit for all.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / main_topic / enum
      Previous value: -[
      -  "census",
      -  "education",
      -  "immigration",
      -  null
      -]New value: +[
      +  "census",
      +  "education",
      +  "health",
      +  "immigration",
      +  null
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / main_topic
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Only datasets in this subject area. Omit for all.",
      +  "enum": [
      +    "census",
      +    "education",
      +    "immigration",
      +    null
      +  ],
      +  "title": "Main Topic"
      +}
    • addedInput schema / properties / tables / description
      Added value: +"Tables to return in full. Omit for the short index."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds real value by describing what each mode returns, including that full form yields every column and a name per detail level ('education.attendance__districts'). It doesn't mention size limits or cost of requesting many tables, which keeps it from a 5.

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 no-argument case is front-loaded and each sentence carries a distinct fact (index contents, full mode, topic filter). It is somewhat dense with parenthetical examples, but nothing is a pure restatement of the name or annotations.

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 an output schema present and 100% schema coverage, the description doesn't need to detail return values, yet it explains the two result shapes well enough to choose between them. The only gap is that it never states ordering, limits, or how many tables can be requested at once.

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 100%, so baseline is 3, but the description goes beyond the schema by showing the alias forms `tables` accepts ('education.attendance', 'education/gosa/attendance', 'attendance', 'districts') — information absent from the schema, which only says 'array of strings'. The main_topic explanation mirrors the schema's own description, adding little extra.

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 first sentence names the exact resource (the tables link_query can read) and its companion concept (join keys), which immediately separates it from list_datasets and the describe_* siblings. It also frames the two result modes (short index vs. full definitions) so an agent knows what it gets before calling.

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 clearly states the calling pattern: 'With no arguments, a short index' versus 'tables ... returns those tables in full', plus how main_topic narrows either form. It stops short of explicitly positioning itself against siblings like list_datasets or describe_dataset, so routing to those alternatives is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources