Skip to main content
Glama
pingidentity

PingOne Advanced Identity Cloud MCP Server

Official
by pingidentity

Get Node Type Details

getNodeTypeDetails
Read-only

Get schema, default template, and outcomes for node types to understand configuration requirements and outcomes before building journeys.

Instructions

Get complete details (schema, default template, and outcomes) for one or more node types. Use this before building journeys to understand what configuration each node type requires and what outcomes it produces.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
realmYesThe realm to query
nodeTypesYesArray of node type names to get details for (e.g., ["UsernameCollectorNode", "PasswordCollectorNode"])

Implementation Reference

  • The toolFunction handler for getNodeTypeDetails. It calls fetchNodeTypeDetails and returns the results.
    async toolFunction({ realm, nodeTypes }: { realm: string; nodeTypes: string[] }) {
      try {
        const results = await fetchNodeTypeDetails(realm, nodeTypes, SCOPES);
    
        // Count successes and errors
        const resultValues = Object.values(results);
        const successCount = resultValues.filter((r) => r.error === null).length;
        const errorCount = resultValues.filter((r) => r.error !== null).length;
    
        const response = {
          realm,
          results,
          successCount,
          errorCount
        };
    
        return createToolResponse(JSON.stringify(response, null, 2));
      } catch (error: any) {
        return createToolResponse(`Failed to get node type details in realm "${realm}": ${error.message}`);
      }
    }
  • Input schema for getNodeTypeDetails: takes a realm (enum) and an array of node types (min 1).
    inputSchema: {
      realm: z.enum(REALMS).describe('The realm to query'),
      nodeTypes: z
        .array(safePathSegmentSchema)
        .min(1)
        .describe(
          'Array of node type names to get details for (e.g., ["UsernameCollectorNode", "PasswordCollectorNode"])'
        )
    },
  • src/index.ts:27-44 (registration)
    Generic tool registration loop: all tools (including getNodeTypeDetails) are registered via server.registerTool.
    allTools.forEach((tool) => {
      const toolConfig: ToolConfig = {
        title: tool.title,
        description: tool.description
      };
    
      // Only add inputSchema if it exists (some tools like getLogSources don't have one)
      if ('inputSchema' in tool && tool.inputSchema) {
        toolConfig.inputSchema = tool.inputSchema;
      }
    
      // Add annotations if present
      if ('annotations' in tool && tool.annotations) {
        toolConfig.annotations = tool.annotations;
      }
    
      server.registerTool(tool.name, toolConfig, tool.toolFunction as any);
    });
  • Re-exports getNodeTypeDetailsTool from the AM tools index.
    export { getNodeTypeDetailsTool } from './getNodeTypeDetails.js';
  • The fetchNodeTypeDetails function: fetches schema, template, and outcomes for multiple node types in parallel from the AM API.
    export async function fetchNodeTypeDetails(
      realm: string,
      nodeTypes: string[],
      scopes: string[]
    ): Promise<Record<string, NodeTypeDetailsResult>> {
      const results: Record<string, NodeTypeDetailsResult> = {};
    
      await Promise.all(
        nodeTypes.map(async (nodeType) => {
          const baseUrl = buildAMJourneyNodesUrl(realm, nodeType);
    
          try {
            // Fetch all three endpoints in parallel for this node type
            const [schemaRes, templateRes, outcomesRes] = await Promise.all([
              makeAuthenticatedRequest(`${baseUrl}?_action=schema`, scopes, {
                method: 'POST',
                headers: AM_API_HEADERS,
                body: JSON.stringify({})
              }),
              makeAuthenticatedRequest(`${baseUrl}?_action=template`, scopes, {
                method: 'POST',
                headers: AM_API_HEADERS,
                body: JSON.stringify({})
              }),
              makeAuthenticatedRequest(`${baseUrl}?_action=listOutcomes`, scopes, {
                method: 'POST',
                headers: AM_API_HEADERS,
                body: JSON.stringify({})
              })
            ]);
    
            results[nodeType] = {
              nodeType,
              schema: schemaRes.data,
              template: templateRes.data,
              outcomes: outcomesRes.data as Array<{ id: string; displayName: string }>,
              error: null
            };
          } catch (error: any) {
            results[nodeType] = {
              nodeType,
              schema: null,
              template: null,
              outcomes: null,
              error: error.message
            };
          }
        })
      );
    
      return results;
    }
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, which cover the key behavioral aspects. The description adds detail on what is returned, but does not reveal additional behavioral traits beyond the annotations.

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 a single sentence that is front-loaded with the core action and results. Every word adds value with no redundancy.

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?

Given the moderate complexity (2 parameters, no output schema), the description explains the return values (schema, default template, outcomes) sufficiently for an agent to understand the tool's purpose and output.

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?

Input schema has 100% coverage with descriptions for both parameters. The description does not add any additional semantics beyond what is already in the schema, so baseline of 3 is appropriate.

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 clearly states the verb 'Get' and the resource 'node types', and specifies the returned details (schema, default template, outcomes). It distinguishes itself from siblings like listNodeTypes which likely only lists names.

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?

Explicitly states when to use: 'Use this before building journeys to understand what configuration each node type requires and what outcomes it produces.' Provides clear context, though it doesn't explicitly state when not to use.

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/pingidentity/aic-mcp-server'

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