Skip to main content
Glama
peakacom

peaka-mcp-server

Official
by peakacom

peaka_create_query

Create a named, saved query in Peaka's semantic layer by providing a project, display name, and SQL. Optionally set a refresh schedule or query type.

Instructions

Create a named, saved query in the Peaka project's semantic layer. Returns the created query object including its ID, which can be passed to peaka_execute_query.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scheduleNoAuto-refresh schedule for MATERIALIZED queries. Use {type: 'interval', repeatDuration}, {type: 'cron', cronExpression, timezone}, or {type: 'none'} to disable an existing schedule. Ignored for PLAIN queries.
projectIdYesThe Peaka project ID to run against.
queryTypeNoPLAIN runs the SQL on each execute; MATERIALIZED stores results.PLAIN
inputQueryYesThe Trino SQL body of the query.
displayNameYesHuman-readable name for the saved query.
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, meaning the description must clarify behavior. It states the tool creates a new query (write but not destructive) and returns an ID for future execution, adding lifecycle context beyond annotations. It does not detail side effects on existing resources, but the creation behavior is clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences plus a focused paragraph on projectId prerequisites. Every sentence adds value, no fluff, and important information is front-loaded.

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?

The description covers the main purpose, return value, and a critical prerequisite (projectId). For a 5-parameter creation tool with no output schema, it is mostly complete. The distinction between PLAIN and MATERIALIZED query types is left to the schema, which is acceptable. The description could have mentioned the schedule parameter's purpose, but the schema describes it.

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?

With 100% schema coverage, the baseline is 3. The description does not elaborate on parameter meanings beyond the schema, except for a usage hint about projectId. The schema already provides adequate descriptions for all parameters including the nested schedule.

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 description uses the specific verb 'Create' with the resource 'named, saved query' and identifies the Peaka project's semantic layer. It also mentions the return value (query object with ID) and how it connects to peaka_execute_query, distinguishing it from siblings like peaka_get_query or peaka_execute_query.

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?

The description explicitly advises calling peaka_list_projects first if the projectId is unknown, and to ask the user for confirmation—providing clear when-to-use guidance and a direct alternative tool reference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/peakacom/peaka-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server