Skip to main content
Glama
peakacom

peaka-mcp-server

Official
by peakacom

peaka_create_cache

Create a cache for a table in a Peaka project, storing data locally to improve query performance. Optionally set refresh schedules using ISO-8601 durations.

Instructions

Create a cache for a table in the Peaka project. Caching a table improves query performance by storing the data locally. Schedule expressions are optional at creation time and use ISO-8601 durations (e.g. PT6H, P1D, P7D, P30D); they can be set later with peaka_update_cache.

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
catalogIdYes
projectIdYesThe Peaka project ID to run against.
tableNameYes
schemaNameYes
fullRefreshScheduleNoOptional full refresh schedule. {type: 'BASIC', expression: 'P7D'} for recurring, or {type: 'NONE'} to leave it off. Omit to leave unset.
incrementalScheduleNoOptional incremental refresh schedule. {type: 'BASIC', expression: 'PT6H'} for recurring, or {type: 'NONE'} to leave it off. Omit to leave unset.
Behavior4/5

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

The description adds behavioral context beyond the annotations by explaining that caching stores data locally to improve query performance, and that schedule expressions are optional at creation time. It does not contradict the annotations (readOnlyHint=false, destructiveHint=false). It could be richer on side effects or return behavior, but the provided context is useful.

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 and well-structured, with the core purpose in the first sentence, followed by an essential clarification about schedules, and a practical workflow note. No wasted words; each sentence contributes useful information.

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

Completeness3/5

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

The description covers key workflow steps (projectId discovery) and schedule semantics, but it does not explain what the tool returns (e.g., cache ID or status) or mention how to verify creation success. Given there is no output schema, this is a notable gap. It also omits any prerequisites or failure modes, though the operation is a non-destructive create.

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?

The description explains ISO-8601 duration formats and examples (PT6H, P1D, P7D, P30D), adding meaning to the schedule parameters. It also clarifies that schedules can be omitted initially and set later. For projectId, it gives process guidance (list projects first). Required params like catalogId, schemaName, and tableName are not explicitly described, relying on their names, but the description compensates for the 50% schema coverage.

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 opens with 'Create a cache for a table in the Peaka project,' which clearly identifies a specific verb, resource, and scope. It implicitly differentiates from sibling tools like peaka_update_cache by noting schedule expressions can be set later, and from peaka_create_cache_batch by focusing on a single table.

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 provides concrete when-to-use guidance: it tells the agent to call peaka_list_projects first if the projectId is unknown and to ask the user which project to use. It also points to peaka_update_cache for setting schedule expressions later. However, it does not explicitly contrast with create_cache_batch or mention scenarios where caching is inappropriate.

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