Skip to main content

Build an Apollo OAuth authorization URL

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READapollo.apollo_oauth_build_authorize_url
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: 1.0.2
  • Descriptor hash: 695f39d5a1aa94729ea25648e9622757784dad800f06dee2a43155e8e0b33e34

Use this local helper to build an Apollo authorization-code URL from client ID, redirect URI, scopes, and caller-generated state. It does not contact Apollo or change state. The result contains the authorization URL; the caller must validate state after callback.

Request Body

{
"jsonrpc": "2.0",
"id": "apollo-apollo-oauth-build-authorize-url-example",
"method": "tools/call",
"params": {
"name": "apollo.apollo_oauth_build_authorize_url",
"arguments": {
"client_id": "client_id_123",
"redirect_uri": "redirect_uri_example",
"scopes": [],
"state": "state_example"
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"client_id",
"redirect_uri",
"scopes",
"state"
],
"properties": {
"state": {
"type": "string",
"minLength": 1,
"description": "Caller-generated anti-CSRF state value."
},
"scopes": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"description": "Apollo OAuth scopes requested by the application."
},
"client_id": {
"type": "string",
"minLength": 1,
"description": "Apollo OAuth application client ID."
},
"redirect_uri": {
"type": "string",
"minLength": 1,
"description": "Exact registered OAuth callback URL."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the requested operation completed successfully."
},
"data": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
],
"description": "Normalized provider or navigation result."
},
{
"type": "null"
}
],
"default": null,
"description": "Normalized provider or navigation result."
},
"meta": {
"type": "object",
"description": "Safe request, pagination, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"description": "Safe error details when ok is false.",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Safe error details when ok is false."
}
},
"description": "Apollo MCP normalized response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "apollo-apollo-oauth-build-authorize-url-example",
"method": "tools/call",
"params": {
"name": "apollo.apollo_oauth_build_authorize_url",
"arguments": {
"client_id": "client_id_123",
"redirect_uri": "redirect_uri_example",
"scopes": [],
"state": "state_example"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool apollo.apollo_oauth_build_authorize_url executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}