Skip to main content
Glama

Get an operation

GetOperation
Read-onlyIdempotent

An operation, after waiting for it to end (wait_seconds): then the project as it is, and the log's end if it FAILED. Call again while it is IN_PROGRESS. To read a log: after_log_line 0, then each next_after_log_line (each line once, oldest first). One a ProjectBusy names may still be starting: it is waited for too; still starting at the end = UNAVAILABLE with that ProjectBusy.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "GetOperation"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceNoThe workspace: its id or name (ListWorkspaces). Omit when the account has one.
project_idNo
operation_idNoEmpty = the latest.
wait_secondsNoHow long to wait for it to end, ≤45. Absent = 45; 0 = answer at once.
after_log_lineNoThe previous next_after_log_line; 0 = from the start. Absent = the last lines.
log_line_limitNo≤500; 0 = 50, when asked for lines. Also ends at ~64 KiB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "The workspace: its id or name (ListWorkspaces). Omit when the account has one.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safe read-only, idempotent profile, and the description adds substantial behavior on top: blocking up to wait_seconds, state transitions (IN_PROGRESS, FAILED, UNAVAILABLE), the ProjectBusy race, and that log lines are delivered once each oldest-first. With no output schema, the return contract is only partly sketched — the project payload's fields are never described. Strong disclosure, but not a complete behavioral contract.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but the structure is strained: the first sentence hangs off a colon, jumps to the return values, then to log paging, then back to the ProjectBusy edge case. Front-loading is weak — the single most actionable instruction ('Call again while it is IN_PROGRESS') is buried mid-paragraph. Every sentence earns its place, but the ordering costs clarity.

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 six-parameter tool with no output schema, it covers the essentials an agent needs to drive the call correctly: wait behavior, polling, log paging, and the UNAVAILABLE/ProjectBusy resolution. The gap is the return payload — the described 'project as it is' is never characterized, leaving the agent to discover the shape empirically.

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 83%, so the schema already documents most parameters; the description nonetheless adds meaning the schema lacks, notably the coupling between after_log_line and next_after_log_line and the ordering/once-only guarantee for lines. It reinforces wait_seconds semantics ('after waiting for it to end'), though it doesn't restate the 45-second ceiling or the 500-line/64 KiB limits. Meaningful added value above the baseline 3.

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 makes clear this is not a plain getter: it waits for the operation to end, then returns the resulting project state plus the log tail when the operation FAILED. The opening is a fragment ('An operation, after waiting for it to end (wait_seconds): then the project as it is...') rather than a clean verb+resource statement, but an agent can still infer the resource and the effect. No sibling is named for contrast, so it stops short of a 5.

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?

Explicit procedural guidance is given: 'Call again while it is IN_PROGRESS' defines the polling loop, and the log-reading recipe ('after_log_line 0, then each next_after_log_line, each line once, oldest first') tells the agent how to page through output. It also explains the ProjectBusy case where a named project may still be starting and resolves to UNAVAILABLE. What's missing is when to prefer this over GetProject or QueryContainerLogs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources