---
title: metric_stream_create
url: "/docs/ai-agents/mcp-tools/metrics/metric_stream_create/"
canonical_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/metrics/metric_stream_create/
markdown_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/metrics/metric_stream_create.md
summary: Start a metric stream for an Environment's Containers, then read it with
  metric_stream_show.
categories:
- mcp
- reference
---

# metric_stream_create

Start a metric stream for an Environment's Containers, then read it with metric_stream_show. metric_source_list gives the source type and scope.

| | |
|---|---|
| Access | Changes Blossom |
| Same as | [`blossom metric:stream:create`](/docs/reference/cli/metric/stream/create/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `data` | object | Values come from metric_source_list. Required. |
| `data.streamable_id` | string | Environment id. |
| `data.source_type` | string | Such as container. |
| `data.metric_scope` | string | Such as environment-100:web. |
| `data.time_range` | string | Defaults to live. |

## Example

```json
{"data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}
```
