Skip to main content
Glama

list_intents

Lists available intent plans and their human approval requirements for the active profile in the MCP memory gateway server.

Instructions

List available intent plans and whether each requires human approval in the active profile

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mcpProfileNo
bundleIdNo
partnerProfileNo

Implementation Reference

  • The primary implementation of the `list_intents` tool logic, which processes policy bundles and profiles to return a list of available intents.
    function listIntents(options = {}) {
      const bundle = loadPolicyBundle(options.bundleId);
      const profile = assertKnownMcpProfile(options.mcpProfile || getActiveMcpProfile());
      const requiredRisks = getRequiredApprovalRisks(bundle, profile);
      const partnerStrategy = buildPartnerStrategy({
        partnerProfile: options.partnerProfile,
        tokenBudget: DEFAULT_TOKEN_BUDGET,
      });
    
      return {
        bundleId: bundle.bundleId,
        mcpProfile: profile,
        partnerProfile: partnerStrategy.profile,
        partnerStrategy: {
          verificationMode: partnerStrategy.verificationMode,
          recommendedChecks: partnerStrategy.recommendedChecks,
        },
        intents: bundle.intents.map((intent) => ({
          id: intent.id,
          description: intent.description,
          risk: intent.risk,
          actionCount: intent.actions.length,
          requiresApproval: requiredRisks.includes(intent.risk),
        })),
      };
    }
  • Registration of the `list_intents` tool in the tool registry.
    name: 'list_intents',
    description: 'List available intent plans and whether each requires human approval in the active profile',
    inputSchema: {
      type: 'object',
      properties: {
        mcpProfile: { type: 'string' },
        bundleId: { type: 'string' },

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/IgorGanapolsky/mcp-memory-gateway'

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