Skip to main content
Glama

Get active org-token and SSO identity context

get_active_identity_context
Read-only

Check which credentials are active in the MCP session to select the appropriate tools: org-token admin or SSO self-service.

Instructions

Reports which credentials are active in this MCP session: org-wide API token (when configured) and individual-user SSO (when hub_url is set or after sso_login). Call before choosing org-token admin tools vs my_* / SSO self-service tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds valuable context about what credentials are checked (org-wide token, SSO) and under what conditions they are active (when configured, hub_url set, or after sso_login). This goes beyond the structured annotations without contradicting them.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the core purpose ('Reports which credentials are active'), followed by specific conditions. Every sentence is information-dense with no filler.

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

Completeness5/5

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

For a simple zero-parameter status tool with no output schema, the description provides sufficient context: what it reports, the credential types and conditions, and when to use it. It doesn't leave the agent guessing about its role in the toolset.

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

Parameters4/5

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

The tool has zero parameters, so schema coverage is trivially 100%. The baseline for no parameters is 4, and the description appropriately includes no parameter details since none exist.

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

Purpose5/5

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

The description uses the specific verb 'Reports' and identifies the resource as 'which credentials are active in this MCP session'. It clearly distinguishes from sibling tools like audit_search or configure_tenant, which serve different purposes.

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

Usage Guidelines5/5

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

It explicitly states when to call: 'Call before choosing org-token admin tools vs my_* / SSO self-service tools.' This gives the agent a direct usage directive and clarifies the decision it helps make.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/akashtrilogy/advocatehub-influitive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server