Skip to main content
Glama

Get service file operation

get_service_file_operation
Read-onlyIdempotent

Poll the status of a file operation that returned 202, using the operationId from the file tool, to check whether it is pending, running, succeeded, failed, or needs attention.

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.

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": {
      "orderNo": "<orderNo>",
      "operationId": "<operationId>"
    },
    "name": "get_service_file_operation"
  }
}

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.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: the five terminal and non-terminal states with their meaning, 24-hour retention, permission grant semantics (explicit files:read grant, empty list does not count, hosted connector vm:files:read), platform availability reason codes, and the 423 2FA response. The only real gap is return payload shape, which matters since there is no output schema.

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?

Front-loaded with purpose and status semantics, then escalating to permissions and availability. It is one dense run-on block using semicolons and parentheses, which is heavier than ideal, but nearly every clause carries operational value (states, retention, auth, reason codes).

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?

With no output schema, the description carries the return-value burden and does so by enumerating statuses and their payloads (result, errorCode, needsAttention). It also covers auth requirements, retention window, platform prerequisites with verbatim reason codes, and the 423 case — everything an agent needs to call and interpret this correctly.

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, while operationId only has a hex pattern there. The description compensates by explaining operationId's provenance ('the operationId a file tool returned'), which is the meaning the schema lacks. orderNo's tenant-scoped semantics are left to the schema.

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?

Opens with a specific verb+resource ('Poll a file operation') and immediately scopes it to operations that 'answered 202', naming the triggering situations (slow guest, recursive delete, extraction). This clearly separates it from the sibling file tools that create such operations.

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?

States exactly when to use it (after a 202 from a file tool), what input to feed it ('Use the operationId a file tool returned'), and an explicit prohibition ('never repeat the original change instead'). The alternative behavior to avoid is named, so the agent has a clear routing rule.

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