Skip to main content
Glama
peaka-mcp-server

peaka-mcp-server

Official
by peakacom

peaka_get_metadata_refresh_status

Read-only

Check the current status of a specific catalog's metadata refresh job to see whether it is waiting, active, completed, failed, paused, stuck, or delayed.

Instructions

Check the current status of a metadata refresh job for a specific catalog. Possible statuses: NOT_ACTIVE, COMPLETED, WAITING, ACTIVE, DELAYED, FAILED, PAUSED, STUCK.

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>",
      "catalogId": "<catalogId>"
    },
    "name": "peaka_get_metadata_refresh_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
catalogIdYesThe catalog to check refresh status for. The catalog's id, or its name as written in SQL (e.g. "stripe" in stripe.payment.charges). "peaka" with schemaName query or mtquery is the saved queries, with any other schema the Peaka tables.
projectIdYesThe Peaka project ID to run against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.5
    • changedInput schema / properties / catalogId / description
      Previous value: -"The catalog ID to check refresh status for."New value: +"The catalog to check refresh status for. The catalog's id, or its name as written in SQL (e.g. \"stripe\" in stripe.payment.charges). \"peaka\" with schemaName query or mtquery is the saved queries, with any other schema the Peaka tables."
  2. First observedv0.11.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered structurally. Beyond that, the description enumerates all eight possible status values (NOT_ACTIVE, COMPLETED, WAITING, ACTIVE, DELAYED, FAILED, PAUSED, STUCK), which is genuinely useful behavioral context for interpreting the result given there is no output schema. It does not explain what any individual status implies for the agent's next action.

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?

Two short paragraphs, purpose front-loaded, status list kept to a single compact line, and the projectId prerequisite placed after the core purpose. Slightly generic projectId boilerplate keeps it from a 5, but there is no filler.

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?

With no output schema, listing the possible statuses is exactly the information an agent needs to interpret the return value, and the required-projectId prerequisite is spelled out. The remaining gap is that it does not say what a missing/never-started refresh looks like or when a status should trigger a re-refresh.

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?

Schema description coverage is 100%, and the catalogId field description already explains the name-vs-id forms and the 'peaka' special case in more depth than the tool description does. The description adds nothing about projectId or catalogId beyond what the schema states, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource+scope: 'Check the current status of a metadata refresh job for a specific catalog.' That clearly separates it from write-side siblings like peaka_refresh_project_metadata or peaka_refresh_cache_full, though it never names an alternative tool, so the differentiation is by implication rather than explicit contrast.

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?

It supplies a concrete precondition workflow: if the projectId is unknown, call peaka_list_projects first and confirm the project with the user, then reuse that ID. That is real usage guidance with an explicit condition. It stops short of a 5 because it does not address when to use this versus the refresh/start tools or what to do if no refresh job exists.

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