Skip to main content
Glama
peakacom

peaka-mcp-server

Official
by peakacom

peaka_update_query

Idempotent

Update an existing saved query by modifying its display name, SQL body, or auto-refresh schedule. Provide at least one change along with the project and query IDs.

Instructions

Update an existing saved query in the Peaka project. Adjusts the display name, SQL body, and/or the auto-refresh schedule (for materialized queries). At least one of displayName, inputQuery, or schedule must be provided.

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
queryIdYesThe query ID to update. Available from peaka_list_queries.
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.
inputQueryNoNew Trino SQL body for the saved query.
displayNameNoNew human-readable name for the saved query.
Behavior4/5

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

Annotations declare idempotentHint=true and destructiveHint=false; description adds value by specifying that schedule is only for materialized queries and ignored for plain ones, plus the at-least-one constraint. No contradiction with annotations.

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 concise with two paragraphs: first introduces purpose and constraints, second offers usage guidance. Every sentence adds value, no redundancy.

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?

For a mutative tool with 5 parameters and no output schema, the description is fairly complete: covers purpose, param constraints, conditional behavior, and prerequisite. Could explicitly state that update is partial (only provided fields change), but implied.

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 covers 100% of parameters with descriptions. The description adds the important constraint that at least one of displayName, inputQuery, or schedule must be provided, which is not in the schema. Also provides guidance on projectId retrieval.

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 clearly states the tool updates an existing saved query, specifying adjustable fields: displayName, SQL body, and auto-refresh schedule. It distinguishes from siblings by focusing on 'update' vs create/delete/refresh tools. The at-least-one constraint further clarifies purpose.

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?

The description gives a clear prerequisite: call peaka_list_projects first if projectId is unknown. However, it does not explicitly compare with alternatives like peaka_create_query or peaka_refresh_materialized_query, though the name and context infer usage.

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