Skip to main content
Glama
peaka-mcp-server

peaka-mcp-server

Official
by peakacom

peaka_get_metadata_operation

Read-only

Retrieves the status of a specific metadata refresh operation by project and run ID, confirming success only when it is done and not starting or retrying work.

Instructions

Read the exact refresh operation ID returned in runIds by refresh. Only done means success; partially_completed, cancelled, paused, failed and timed_out are not success. Do not substitute the latest catalog job. Requires metadata management permission. Does not start or retry work.

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>",
      "runId": "<runId>"
    },
    "name": "peaka_get_metadata_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYes
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.5

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds real value by defining success semantics (only 'done') and non-success statuses, plus a permission requirement. It does not explain whether non-terminal statuses like 'paused' or 'partially_completed' are worth re-polling or what the response contains, which leaves a behavioral gap.

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?

Four short sentences, front-loaded with the identifier source, then success semantics, then the anti-pattern, then permission. Every sentence carries information the agent needs; nothing is redundant with the name.

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 two-parameter read with no output schema, the description covers identifier provenance, status interpretation, permission, and non-mutation. Remaining gaps are projectId's role and guidance on what to do with transient statuses, both minor for a simple read.

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 coverage is 0% for the two required parameters, so the description carries the burden. It does add crucial meaning for runId (must be the exact ID from the refresh runIds list, not a job ID), but projectId is never mentioned or tied to the metadata management scope.

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 verb and resource ('Read the exact refresh operation ID returned in runIds by refresh') and explicitly rules out a substitute ('Do not substitute the latest catalog job'), which separates it from the refresh and refresh-status siblings. An agent knows exactly what identifier drives it and what it returns.

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?

Gives clear selection context: use the exact runId from a refresh runIds payload, not the latest catalog job, and notes this tool does not start or retry work (implying the refresh tool for that). It stops short of naming the sibling to use when starting work or when polling for a not-yet-terminal state.

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