Skip to main content
Glama
peaka-mcp-server

peaka-mcp-server

Official
by peakacom

peaka_list_tables

Read-only

List tables in a Peaka catalog schema with their cache state, optionally filtering by table name to find specific tables in large schemas.

Instructions

List the tables of a catalog schema in the Peaka project: the catalog and schema once, then one row per table with its name and cache state.

cache: "cached" = the table is read from Peaka's cache; "not_cached" = it can be cached but is read live from the source (a live read of a SaaS source may return only its first page of records); "not_cacheable" = always read live from the source (e.g. a database).
Use tableNameContains to look up specific tables in a large schema; totalTables is the schema's size before that filter. Descriptions are left out unless includeDescriptions is true.

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>",
      "catalogId": "<catalogId>",
      "schemaName": "<schemaName>"
    },
    "name": "peaka_list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
catalogIdYesThe 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 to run against.
schemaNameYes
tableNameContainsNoOnly tables whose name contains this text, ignoring case.
includeDescriptionsNoAdd each table's description as plain text. Large schemas get a much larger response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.15.5
    • addedInput schema / properties / catalogId / description
      Added value: +"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."
    • addedInput schema / properties / includeDescriptions
      Added value: +{
      +  "description": "Add each table's description as plain text. Large schemas get a much larger response.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tableNameContains
      Added value: +{
      +  "description": "Only tables whose name contains this text, ignoring case.",
      +  "type": "string"
      +}
  2. First observedv0.11.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered structurally. The description adds genuinely useful context beyond that: the meaning of each cache state and the caveat that a live read of a SaaS source may return only the first page. That is real value, but it explains result semantics more than invocation behavior, so it sits at a solid 3 rather than higher.

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?

Content is front-loaded: what it lists, then row shape, then cache semantics, then filtering flags, then the projectId prerequisite. The cache paragraph is dense but each clause carries distinct information; no sentence is filler.

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 correctly compensates by describing the returned rows, the cache field values, totalTables, and the descriptions toggle. The one remaining gap is the undocumented schemaName parameter and the absence of any stated distinction from sibling listing tools.

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 80%, so catalogId and the filter flags are already documented; schemaName is the only bare parameter. The description still adds meaning by explaining when tableNameContains matters and that totalTables reflects size before filtering, which helps the agent interpret the filter's effect.

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 first sentence gives a specific verb and resource plus scope: 'List the tables of a catalog schema in the Peaka project', and it even previews the row shape. It is clear what the tool returns, though it never names the closest siblings (peaka_list_project_tables, peaka_search_relevant_tables) to draw the boundary 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 concrete usage triggers: use tableNameContains for large schemas, set includeDescriptions only when needed, and call peaka_list_projects first if projectId is unknown. It stops short of stating when to prefer a sibling like peaka_search_relevant_tables over this tool.

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