Skip to main content
Glama
peakacom

peaka-mcp-server

Official
by peakacom

peaka_execute_query

Read-only

Execute a saved query in a Peaka project by providing its query ID and project ID to retrieve the results.

Instructions

Execute a saved query by its ID in the Peaka project. Use peaka_list_queries to find available query IDs.

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
queryIdYes
projectIdYesThe Peaka project ID to run against.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.11.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, so the description is not required to repeat safety. It adds a behavioral precondition—projectId must be known and user-confirmed—but does not describe response shape, latency, or failure modes. This is adequate but not rich.

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?

Three sentences with no filler; the core action is front-loaded and the workflow guidance is actionable. Every sentence earns its place.

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 straightforward execution tool with two required string params, the description covers how to obtain both IDs and how to handle unknown projectId. It omits return-value expectations, but the absence of an output schema makes this a minor gap rather than a blocking issue.

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?

queryId has no schema description, and the description compensates by linking it to peaka_list_queries. projectId is covered by the schema and further reinforced by the list_projects workflow. Together, both parameters receive enough semantic grounding.

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 action—execute a saved query by ID in the Peaka project—and is distinguishable from sibling tools like peaka_execute_sql_query (ad-hoc SQL) and peaka_get_query (retrieval). The resource and mode of operation are clear.

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?

Explicitly directs the agent to peaka_list_queries to obtain query IDs and to peaka_list_projects when projectId is unknown, including asking the user and remembering the choice. It does not contrast with execute_sql_query, but the given workflow is sufficient for correct invocation.

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

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