Skip to main content
Glama
peaka-mcp-server

peaka-mcp-server

Official
by peakacom

peaka_list_columns

Read-only

Lists all columns for a known Peaka table, including names, data types, and constraints, so you can inspect table structure before writing SQL.

Instructions

List all columns for a given table in the Peaka project. Returns column names, data types, and constraints. Use this directly when the table is known. For several tables, peaka_get_project_metadata with tables=[...] reads them in one call.

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>",
      "tableName": "<tableName>"
    },
    "name": "peaka_list_columns"
  }
}

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.
tableNameYes
schemaNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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."
  2. First observedv0.11.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a safe read operation (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower; the description still adds value by describing the returned shape (names, types, constraints) and by stating the projectId acquisition/retention workflow. It stops short of error behavior, permissions per catalog type, or pagination, 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?

Front-loaded with purpose and return values, then alternatives, then prerequisites — a sensible order with no filler. The closing projectId-reminder sentence is actionable but the longest single block; slight tightening would make it a 5.

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?

There is no output schema, so the explicit description of returned fields is necessary and present, and the multi-table alternative plus projectId bootstrap covers the operational path. Remaining gaps are the two undescribed identifiers (schemaName, tableName), which an agent must infer.

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 50%: catalogId is well documented in the schema and the description adds a projectId-acquisition workflow, but schemaName and tableName carry no meaning in either place. The description partially compensates for the coverage gap without fully resolving what schemaName should be (saved-query vs. table schema is only hinted at in catalogId's text).

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?

States a specific verb and resource ('List all columns for a given table') plus the returned fields (names, data types, constraints), and names the sibling route (peaka_get_project_metadata) for the multi-table case. An agent can distinguish this from the broader metadata tools without opening any schema.

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?

Gives an explicit when-to-use rule ('Use this directly when the table is known'), a when-not/alternative rule ('For several tables, peaka_get_project_metadata with tables=[...]'), and a prerequisite flow (call peaka_list_projects and confirm projectId with the user). Covers context, exclusions, and alternatives alike.

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