Get skill tool schema
GET/api/v2/agent/:agentCode/skill/:skillCode/schema
Returns the JSON schema(s) built at runtime for the skill, so integrators know the exact body shape to send to the execute endpoint. Skills that expose several tools (MCPs, Text, Math and so on) return one entry per tool, each with its tool code.
When the skill needs a personal connection that the caller does not have yet, no schema can be resolved, because an MCP lists its tools over the authenticated session. In that case the response carries an empty tools array and a pendingActions entry with the URL to create the connection.
Request
Path Parameters
Code of the agent that declares the skill.
Code of the skill whose schema is requested.
Query Parameters
Optional personal connection used to resolve the skill. An MCP lists its tools over the authenticated session, so the returned tool set can differ per connection. Only valid for skills configured with a personal connection; when omitted the caller's default connection for the connector is used.
Use this param to override the culture of the response. Options: - en (default) - es
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Returns the skill's tool schema(s), or the pending actions the caller must complete before they can be resolved.
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- ConnectionPendingAction
- ToolApprovalPendingAction
- UserChoicePendingAction
Array [
Array [
]
]
]
tools
object[]
nullable
pendingActions
object[]
nullable
oneOf
arguments
object
nullable
questions
object[]
nullable
options
object[]
nullable
{
"skillCode": "string",
"tools": [
{
"toolCode": "string",
"description": "string",
"schema": {}
}
],
"pendingActions": [
{},
{},
{}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- ConnectionPendingAction
- ToolApprovalPendingAction
- UserChoicePendingAction
Array [
Array [
]
]
]
tools
object[]
nullable
pendingActions
object[]
nullable
oneOf
arguments
object
nullable
questions
object[]
nullable
options
object[]
nullable
{
"skillCode": "string",
"tools": [
{
"toolCode": "string",
"description": "string",
"schema": {}
}
],
"pendingActions": [
{},
{},
{}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- ConnectionPendingAction
- ToolApprovalPendingAction
- UserChoicePendingAction
Array [
Array [
]
]
]
tools
object[]
nullable
pendingActions
object[]
nullable
oneOf
arguments
object
nullable
questions
object[]
nullable
options
object[]
nullable
{
"skillCode": "string",
"tools": [
{
"toolCode": "string",
"description": "string",
"schema": {}
}
],
"pendingActions": [
{},
{},
{}
]
}
If the skill does not use a personal connection, the connection does not belong to the connector the skill requires, or the skill runs on the model provider side and has no schema of its own.
- application/json
- Schema
- Example (from schema)
Schema
errors
object
nullable
{
"message": "string",
"errors": {}
}
The user is unauthorized or the session expired
The user does not have permission
If the skill code does not exist in the resolved agent version, or the connection is not a usable connection of the caller.
There was an unexpected error