Skip to main content
Glama
peaka-mcp-server

peaka-mcp-server

Official
by peakacom

peaka_search_relevant_tables

Read-only

Returns up to 10 candidate tables for a data question when a project is too large to list, with descriptions, column names, and index coverage for quick inspection.

Instructions

Find candidate tables for a data question when the project is too large for peaka_list_project_tables to list. Returns up to 10 candidates, one row each: table, catalogId, the first sentence of its description, its column count and up to 40 column names, plus index state and coverage. Candidates may be incomplete or irrelevant: inspect them, then use peaka_list_columns for a candidate's full columns. If the index is unavailable, stale or has no useful matches, discover scope with peaka_list_catalogs, peaka_list_schemas and peaka_list_tables. Empty results do not mean the project has no data. Permission errors must be resolved, not bypassed with another tool. This tool does not execute SQL or refresh an index.

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>",
      "question": "<question>"
    },
    "name": "peaka_search_relevant_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum candidate tables to return.
questionYesThe data question or concepts to search for.
projectIdYesThe Peaka project ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.5

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds real behavioral context beyond them: candidates may be incomplete or irrelevant, index state and coverage are reported, results are capped at 10, and the tool neither executes SQL nor refreshes the index. It stops short of describing what index state/coverage values look like or pagination, but the honesty about unreliable candidates is the key disclosure.

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 the sibling comparison, then the return shape, then fallbacks, so the most decision-relevant content comes first. It is somewhat long and the closing projectId paragraph reads as generic boilerplate that could be trimmed or moved to a shared note, but no sentence is genuinely wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description fully specifies the returned rows (table, catalogId, first description sentence, column count, up to 40 column names, index state and coverage), which is exactly what an agent needs to interpret results. Combined with the fallback routes and the projectId prerequisite, nothing essential for correct invocation is missing.

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 a 3 is the baseline, but the description adds meaning: 'question' is framed as a data question or concepts to search for, and 'limit' is tied to the 10-candidate output. It also gives the acquisition path for projectId (call peaka_list_projects first and confirm with the user), which the schema's 'The Peaka project ID' one-liner does not.

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 (find candidate tables) plus the resource and the exact condition that triggers it: the project is too large for peaka_list_project_tables. It also spells out the shape of the result set (up to 10 candidates with table, catalogId, description sentence, column count/names, index state), so an agent can distinguish it from the listing siblings 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?

Explicit routing in both directions: use this instead of peaka_list_project_tables when the project is too large, and fall back to peaka_list_catalogs/peaka_list_schemas/peaka_list_tables when the index is unavailable, stale, or unhelpful. It also sets expectations that empty results are not proof of no data and that permission errors must be resolved rather than circumvented with another tool.

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