Tool: delete_subscription
Delete an existing Cloud Pub/Sub subscription.
Important Notes
-
A subscription is a named resource that represents a stream of messages from a single, specific topic, to be delivered to the subscribing application.
-
All messages retained in the subscription are immediately dropped.
-
Calls to
Pullafter deletion will returnNOT_FOUND.
The following sample demonstrate how to use curl
to invoke the delete_subscription
MCP tool.
| Curl Request |
|---|
curl --location 'https://pubsub.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "delete_subscription", "arguments": { // provide these details according to the tool' s MCP specification } } , "jsonrpc" : "2.0" , "id" : 1 } ' |
Input Schema
Request for the DeleteSubscription method.
DeleteSubscriptionRequest
| JSON representation |
|---|
{ "projectId" : string , "subscriptionId" : string } |
| Fields | |
|---|---|
projectId
|
Required. The project ID. |
subscriptionId
|
Required. The ID of the subscription. |
Output Schema
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo {
rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
}
Tool Annotations
Destructive Hint: ✅ | Idempotent Hint: ✅ | Read Only Hint: ❌ | Open World Hint: ✅

