inspector.restDocs

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

ParameterTypeRequiredDescription
max_output_bytesinteger (512 to 32768)nooptionalOutput 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":{}}

Example result

Values are made up. The shape is what your agent receives (formatted here; the server sends compact JSON).

ResultJSON
{
  "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

FieldTypeDescription
columnsarray of anyenvironment, id, last_request_at, requests_24h. Only environment and id when the data server could not be reached.
rowsarray of array of anyOne row per environment: path, id, time of the last request (null if none) and the number of requests in the last 24 hours.
truncatedbooleanTrue when the result was cut to fit max_output_bytes. Use next_cursor and hint to continue.
hintstringWhat to do next (which tool, which parameter).

Notes

  • Columns are environment (the org/project/env path to pass to the other tools), id, last_request_at and requests_24h. When the data server cannot be reached, the result has only environment and id and the hint says 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 environment parameter.
  • Output is limited by max_output_bytes (default 4 KB, minimum 512, maximum 32768). See Output budgets and limits.