> ## Documentation Index
> Fetch the complete documentation index at: https://glide-9da73dea.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# agents.list

> List sibling agents under the same principal/entity. Useful for cross-agent UIs; doesn't expose another agent's envelope policy.

List sibling agents under the same principal/entity. Useful for cross-agent UIs; doesn't expose another agent's envelope policy.

## Metadata

| Field                    | Value         |
| ------------------------ | ------------- |
| Name                     | `agents.list` |
| Category                 | `read`        |
| Required scope           | `agents:read` |
| Idempotency key required | no            |

## Annotations

| Annotation              | Value       |
| ----------------------- | ----------- |
| Title                   | List Agents |
| Read-only               | yes         |
| Destructive             | no          |
| Idempotent              | yes         |
| Open-world              | no          |
| Requires human approval | no          |

## Input schema

```json theme={null}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "include_revoked": {
      "default": false,
      "type": "boolean"
    }
  },
  "required": [
    "include_revoked"
  ],
  "additionalProperties": false
}
```

## Output schema

```json theme={null}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "agents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agent_principal_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "display_name": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "throttled",
              "revoked",
              "expired"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "is_self": {
            "type": "boolean"
          }
        },
        "required": [
          "agent_principal_id",
          "display_name",
          "purpose",
          "status",
          "created_at",
          "is_self"
        ],
        "additionalProperties": false
      }
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    }
  },
  "required": [
    "agents",
    "fetched_at"
  ],
  "additionalProperties": false
}
```

## Request examples

<CodeGroup>
  ```bash curl theme={null}
  curl -X POST https://mcp.glide.co/mcp/read \
    -H "Authorization: Bearer $GLIDE_GRANT_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "agents.list",
      "params": {
        "include_revoked": false
      }
    }'
  ```

  ```ts TypeScript theme={null}
  import { GlideClient } from './glide-client';

  const client = new GlideClient({ grantToken: process.env.GLIDE_GRANT_TOKEN! });

  const result = await client.call('agents.list', {
    include_revoked: false,
  });

  console.log(result);
  ```

  ```python Python theme={null}
  from glide_client import GlideClient
  import os

  client = GlideClient(grant_token=os.environ["GLIDE_GRANT_TOKEN"])

  result = client.call("agents.list", {
      "include_revoked": False,
  })

  print(result)
  ```
</CodeGroup>

## Response examples

Successful response:

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "agents": [
      {
        "agent_principal_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "display_name": "Payroll Disbursement Agent",
        "purpose": "Weekly payroll runs for Acme Corp employees",
        "status": "active",
        "created_at": "2026-04-01T09:00:00Z",
        "is_self": false
      },
      {
        "agent_principal_id": "d4e5f6a7-b8c9-0123-def0-234567890123",
        "display_name": "Supplier Payment Agent",
        "purpose": "Automated AP payments under $5,000 per transaction",
        "status": "active",
        "created_at": "2026-04-15T14:30:00Z",
        "is_self": true
      }
    ],
    "fetched_at": "2026-05-04T12:00:00Z"
  }
}
```

Error — missing or expired grant token:

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32001,
    "message": "grant token missing or expired",
    "data": {
      "reason_id": "token_expired"
    }
  }
}
```

Error — grant missing required scope:

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32002,
    "message": "grant does not include agents:read scope",
    "data": {
      "reason_id": "insufficient_scope"
    }
  }
}
```

## Errors

| Code     | Name               | Cause                              | Remediation                                |
| -------- | ------------------ | ---------------------------------- | ------------------------------------------ |
| `-32600` | Invalid request    | Malformed JSON-RPC envelope        | Check `method`, `jsonrpc`, and `id` fields |
| `-32602` | Invalid params     | `include_revoked` is not a boolean | Validate against schema before call        |
| `-32000` | Unauthenticated    | Missing `Authorization` header     | Supply a valid `Bearer` token              |
| `-32001` | Unauthorized       | Grant token expired or revoked     | Refresh token via `agent.grant.refresh`    |
| `-32002` | Insufficient scope | Grant missing `agents:read` scope  | Issue new grant with `agents:read` scope   |
| `-32603` | Internal error     | Server-side error                  | Retry with backoff; contact support        |

## Auth

Caller's grant must include the `agents:read` scope. Grants whose scope set is a superset of the required scope are accepted.
