---
title: "Get agent schemas"
method: GET
path: "/api/agents/{agent_id}/schemas"
tags: ["Agents"]
---

# Get agent schemas

`GET /api/agents/{agent_id}/schemas`

Retrieve an agent's input and output JSON schemas.

## Path parameters

- `agent_id` string, required

## Query parameters

- `include_tools` boolean

## Response `200`

Successful response.

- PlatformAgentSchemasResponse
  - `agent_id` string, required — ID of the agent.
  - `name` string — Name of the agent.
  - `input_schema` object, required — Agent input schema in JSON Schema format.
  - `output_schema` object, required — Agent output schema in JSON Schema format.
  - `tools` PlatformActionSummary[] — Tools that the agent can invoke, when requested.
    - `tool_id` string, required — Unique identifier of the action.
    - `display_name` string, required — Display name of the action.
    - `type` string — Tool type.
    - `auth_type` string — Authentication type required by the action.
    - `write_action_type` string — Write-action execution type.
    - `is_setup_finished` boolean — Whether this action has been fully configured.
    - `data_source` string — Kind of knowledge the action accesses or modifies.
  - `request_id` string, required — Platform-generated request ID for support correlation.

## Other responses

- `400` — Invalid request (malformed JSON, invalid parameter values, unknown fields).
- `401` — Missing or invalid authentication token.
- `403` — Token valid but lacks permission for the requested operation.
- `404` — Resource not found.
- `408` — Backend did not respond within the timeout window.
- `429` — Rate limit exceeded. Includes Retry-After header.
- `500` — Unexpected server-side failure.
- `503` — Backend temporarily unavailable.

## Changes

> 68 revisions in range; 6 could not be searched.

- **2026-08-07** `359f2d1c01a7` — 32 warning
  - added the new `spend_limit_exceeded` enum value to the `code` response property for the response status `400`
  - added the new `spend_limit_exceeded` enum value to the `code` response property for the response status `401`
  - added the new `spend_limit_exceeded` enum value to the `code` response property for the response status `403`
  - added the new `spend_limit_exceeded` enum value to the `code` response property for the response status `404`
  - …28 more
- **2026-08-05** `6c00d0b889b7` — 16 warning
  - added the new `tools_unauthorized` enum value to the `code` response property for the response status `400`
  - added the new `tools_unauthorized` enum value to the `code` response property for the response status `401`
  - added the new `tools_unauthorized` enum value to the `code` response property for the response status `403`
  - added the new `tools_unauthorized` enum value to the `code` response property for the response status `404`
  - …12 more
- …earlier changes not shown

[Full history](https://skmtc.dev/gleanwork/apis/glean-platform-api/changes/api/agents/:agent_id/schemas/get.md)

---

[API](https://skmtc.dev/gleanwork/apis/glean-platform-api.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-platform-api/revisions/46c121f70527/schema)
