Skip to main content
Glama
peaka-mcp-server

peaka-mcp-server

Official
by peakacom

peaka_list_project_tables

Read-only

List every table in a Peaka project, catalog, or schema to find the tables a data question needs before reading their columns.

Instructions

Start here to find the tables for a data question. Lists every table of the project (or of one catalog or schema), grouped by catalog.schema, one line each: its name, [cached] when it is cached, the start of its description, up to 6 column names and the tables it joins. Each schema's header gives its catalogId and how its tables are read (a SaaS source live, first page only, unless [cached]; a database live and in full). Write tables as catalog.schema.table. Choose the tables the question needs from this list, then read their columns with peaka_get_project_metadata and tables=[...] in one call.

If the project is too large to list whole, the answer gives its schemas with their table counts: list one schema with catalogId and schemaName, or use peaka_search_relevant_tables.

If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.

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": {
      "projectId": "<projectId>"
    },
    "name": "peaka_list_project_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
catalogIdNoOnly this catalog's tables. The catalog's id, or its name as written in SQL (e.g. "stripe" in stripe.payment.charges). "peaka" with schemaName query or mtquery is the saved queries, with any other schema the Peaka tables.
projectIdYesThe Peaka project ID.
schemaNameNoOnly this schema's tables (needs catalogId).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.5

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint true, destructiveHint false, openWorldHint false), but the description adds real value beyond them: the line-by-line output format, [cached] markers, and the critical read semantics that a SaaS source is read live and first page only unless cached while a database is read live and in full. It also discloses the degradation path when a project is too large to list whole. The only gap is that it says nothing about latency, empty results, or output size limits.

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?

Front-loaded with the purpose and the output shape, then the fallback path, then the prerequisite — a sensible order. It is longer than typical but nearly every sentence carries operational information; the instruction to write tables as catalog.schema.table is the one piece that edges toward instructional padding.

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 does the work of explaining the return format, grouping, caching markers and read semantics, and it covers the oversized-project case and the projectId prerequisite, so an agent can call it correctly. Remaining gaps are minor: nothing about error behavior, empty catalogs, or the cost of listing a very large project before the fallback triggers.

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% and the catalogId description already explains the id-or-SQL-name forms and the "peaka" saved-queries case, so the schema does the heavy lifting. The description adds some meaning by pairing catalogId with schemaName as the way to drill into an oversized project, but it does not add anything about projectId or scoping beyond what the schema states.

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?

Opens with a specific verb and resource plus routing advice ("Start here to find the tables for a data question. Lists every table of the project (or of one catalog or schema)") and states the exact output shape (grouped by catalog.schema, one line per table with name, [cached], description start, up to 6 columns, joins). This clearly separates it from peaka_search_relevant_tables (used when too large) and peaka_get_project_metadata (used next to read columns).

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 gives explicit sequencing: start here, then read the needed tables' columns with peaka_get_project_metadata and tables=[...] in one call. It names the alternative for large projects (list one schema with catalogId and schemaName, or use peaka_search_relevant_tables) and the prerequisite (call peaka_list_projects and ask the user if projectId is unknown).

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