Skip to main content
Glama

identity_get_access_token_with_authorization_request

Exchange an authorization code, refresh token, or client credentials for a user access token; this legacy endpoint is deprecated in favor of /oidc/oauth2/token.

Instructions

[DEPRECATED] Get an access token.

Use this API instead: * /oidc/oauth2/token Exchange authorization code, refresh token or client_credentials to user access token. ### Access Policy | Role | Access | | ----- | ----- | | Anonymous | ✔️ |

POST /csp/gateway/am/api/auth/authorize

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the safety profile is partly covered. The description adds useful context by noting deprecation and anonymous access policy. It does not discuss token lifetime, security sensitivity, or what the caller receives beyond the token.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The deprecation and replacement guidance are front-loaded, which is the most important information. The access policy table and repeated endpoint are somewhat noisy, but the description remains reasonably concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deprecated token-issuing tool with a fully documented nested body, the description provides the critical missing context: deprecation, replacement endpoint, supported grant flows, and access policy. It does not explain return values, but there is no output schema, so that gap is modest.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the nested body fields and their meanings are already documented. The description adds some semantic grouping by mentioning authorization_code, refresh_token, and client_credentials flows, but it does not add operational detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: get an access token via authorization request. It also explains the supported grant flows (authorization code, refresh token, client_credentials). However, it does not differentiate this tool from closely related siblings like identity_get_access_token_with_refresh_token or identity_get_access_token_pkce_flow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly marks the tool as deprecated and points to a replacement API endpoint, which is strong when-not-to-use guidance. It does not name the corresponding MCP sibling tool to use instead, so the agent has to infer the mapping from the endpoint description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools