# get_operation

Gets the status of a long-running operation. *Usage* Some tools (for example, run_stream) return a long-running operation. You can use this tool to get the status of the operation. It can be called repeatedly until the operation is complete. Parameters * name: The name of the operation to get. * name should be the name returned by the tool that initiated the operation. * name should be in the format of: projects/{project}/locations/{location}/operations/{operation}. Returns * An Operation object that contains the status of the operation. * If the operation is not complete, the response will be empty. Do not check more than every ten seconds. * If the operation is complete, the response will contain either: * A response field that contains the result of the operation and indicates that it was successful. * A error field that indicates any errors that occurred during the operation.

Agent View of the PolicyLayer registry record for `get_operation`. HTML page: https://policylayer.com/tools/com-googleapis-datastream-mcp/get-operation

## Facts

- Tool: `get_operation`
- Server: Mcp (`https://datastream.googleapis.com/mcp`) — https://policylayer.com/tools/com-googleapis-datastream-mcp.md
- Homepage: https://github.com/https://datastream.googleapis.com/mcp
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 1
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | no | The name of the operation resource. |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

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

## Why get_operation is rated Low

This is a read-only operation that queries the status of existing operations. It has no side effects, cannot modify or delete data, and poses minimal risk even if called maliciously. An AI agent misusing this tool could only observe operation statuses, not affect any resources or data.

From the tool's own definition: "Tool retrieves the status of a long-running operation without modifying any data. Description states 'Gets the status' and 'can be called repeatedly until the operation is complete', indicating purely informational retrieval."

Risk signals: Bulk/mass operation — affects multiple targets

## Use case

AI agents call get_operation to retrieve information from Mcp without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Mcp:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_operation": {}
  }
}
```

## Other tools on Mcp (9)

- `delete_stream` — Destructive — https://policylayer.com/tools/com-googleapis-datastream-mcp/delete-stream.md
- `run_stream` — Execute — https://policylayer.com/tools/com-googleapis-datastream-mcp/run-stream.md
- `get_stream` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/get-stream.md
- `get_stream_object` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/get-stream-object.md
- `list_connection_profiles` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/list-connection-profiles.md
- `list_static_ips` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/list-static-ips.md
- `list_stream_objects` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/list-stream-objects.md
- `list_streams` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/list-streams.md
- `lookup_stream_object` — Read — https://policylayer.com/tools/com-googleapis-datastream-mcp/lookup-stream-object.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=com-googleapis-datastream-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/com-googleapis-datastream-mcp
