Skip to main content
Glama

Get service file operation

get_service_file_operation
Read-onlyIdempotent

Poll a file operation using its order number and operationId to track pending, running, succeeded, failed, or needsAttention status and retrieve the final result.

Instructions

Poll a file operation that answered 202 (a slow guest, a recursive delete or an extraction): pending, running, succeeded (result = the answer the call would have given), failed (errorCode) or needsAttention (outcome unknown: inspect the files). Results are kept 24 hours. Use the operationId a file tool returned; never repeat the original change instead. Requires files:read on the API key as an explicit grant (a key whose permission list was left empty does not hold it), read or full access; the hosted connector needs vm:files:read. Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.

Input Schema

NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number, e.g. VP12345
operationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: states results are retained 24 hours, explains that 'succeeded' returns the answer the original call would have given, warns that 'needsAttention' means the outcome is unknown and files must be inspected, and specifies the 423 response for 2FA-locked servers. Availability gating (agent_update_required, node_update_required, feature_disabled) is unusually thorough behavioral context.

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?

Purpose and states are front-loaded before permissions and availability, so the structure is sound. However it is a single very dense paragraph with heavy semicolon nesting; it would scan faster broken into lines, though almost no sentence is filler.

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

Completeness5/5

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

For a 2-param polling tool with no output schema, the description fully covers what an agent needs: the operation states and their semantics, errorCode on failure, retention window, permission prerequisites, and platform-specific availability caveats. Nothing essential is missing.

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 coverage is 50%: orderNo is documented in the schema (tenant-owned service order number), but operationId is only a pattern. The description compensates by defining operationId as the value returned by a prior file tool, which is meaningful operational context the schema lacks.

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 (poll) and resource (a file operation that answered 202), and enumerates the exact terminal states it reports (pending, running, succeeded, failed, needsAttention) with their meanings. An agent can immediately distinguish this async-status tool from the mutating file siblings (write_service_file, delete_service_files, extract_service_file_archive).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to 'Use the operationId a file tool returned; never repeat the original change instead,' which is a direct when-to-use plus a when-not-to-use instruction. It also lists the gating conditions (files:read explicit grant, vm:files:read for the hosted connector) and the unavailable reasons that must be relayed verbatim.

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

Deploy Server

Other Tools