list_environments
Lists the environments a connection can read, with the time of the last request and the request count of the last 24 hours.
- Group
- Discover and summarize
- Access
- read-only
- Default output budget
- 4 KB
- Untrusted content
- no
What it does
This is the description your agent sees:
Tool description
List the environments this connection can read as rows of environment (the org/project/env path to pass to the other tools), id, last_request_at and requests_24h (requests in the last 24 hours), busiest first. Call this first. Typical flow: list_environments, then summarize_requests or top_values to find where the problem is, then list_requests, then get_request, then describe_body and read_body.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
max_output_bytes | integer (512 to 32768) | nooptional | Output budget in bytes. Defaults are small (4096 for lists and summaries, 6144 for get_request, 8192 for read_body); the server cap is 32768. When the budget is exceeded the result is cut at a row or part boundary and truncated, next_cursor and a hint are returned. |
Example call
The arguments of a tools/call request:
{"name":"list_environments","arguments":{}}curl -s https://mcp.inspector.rest/mcp \
-H "Authorization: Bearer irt_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_environments","arguments":{}}}'The same call as a JSON-RPC request over Streamable HTTP. Use a personal token from MCP access, or let your client sign in with OAuth.
Example result
Values are made up. The shape is what your agent receives (formatted here; the server sends compact JSON).
{
"columns": ["environment","id","last_request_at","requests_24h"],
"rows": [
["acme/billing/production","env_8fK2mQ4xT1vB","2026-10-29T09:41:12.406Z",184203],
["acme/billing/staging","env_3Rz7nW9cH5pL","2026-10-29T09:12:50.118Z",2210]
],
"truncated": false,
"hint": "Pass environment (org/project/env or id) to the other tools."
}Result fields
| Field | Type | Description |
|---|---|---|
columns | array of any | environment, id, last_request_at, requests_24h. Only environment and id when the data server could not be reached. |
rows | array of array of any | One row per environment: path, id, time of the last request (null if none) and the number of requests in the last 24 hours. |
truncated | boolean | True when the result was cut to fit max_output_bytes. Use next_cursor and hint to continue. |
hint | string | What to do next (which tool, which parameter). |
Notes
- Columns are
environment(theorg/project/envpath to pass to the other tools),id,last_request_atandrequests_24h. When the data server cannot be reached, the result has onlyenvironmentandidand thehintsays so. - Environments are ordered by activity in the last 24 hours, busiest first.
- Environments outside the connection’s scope are not listed and cannot be queried.
- When the connection covers a single environment, the other tools do not need the
environmentparameter. - Output is limited by
max_output_bytes(default 4 KB, minimum 512, maximum 32768). See Output budgets and limits.