Skip to main content
Glama

neuroverse_process

Process mixed-language inputs to detect language, extract intent, and perform safety checks. Supports Tamil, Hindi, Telugu, Kannada, and English code-switched text.

Instructions

Process mixed-language input through the full NeuroVerse pipeline.

Pipeline: Language Detect → Normalise → Intent Extract → Safety Check → (optional) Execute

Supported languages: Tamil, Hindi, Telugu, Kannada + English (code-switched).

Args:

  • text (string): Raw user input, possibly code-switched

  • user_id (string): User / agent identifier (default: "anonymous")

  • execute (boolean): Whether to also execute the intent (default: true)

Returns: JSON with keys: language, intent, safety, execution (if execute=true)

Examples:

  • "anna indha file ah csv convert pannu" → detects Tamil+English, extracts convert_format

  • "report banao sales ka" → detects Hindi+English, extracts generate_report

  • "drop database production" → BLOCKED by safety layer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesRaw user input (may be code-switched, e.g. Tamil+English)
user_idNoIdentifier for the user / agentanonymous
executeNoIf true, also execute the extracted intent after safety check

Implementation Reference

  • The handler implementation for the `neuroverse_process` tool, which orchestrates language detection, intent extraction, safety checks, and optional execution.
    server.registerTool(
      "neuroverse_process",
      {
        title: "Process Multilingual Input",
        description: `Process mixed-language input through the full NeuroVerse pipeline.
    
    Pipeline: Language Detect → Normalise → Intent Extract → Safety Check → (optional) Execute
    
    Supported languages: Tamil, Hindi, Telugu, Kannada + English (code-switched).
    
    Args:
      - text (string): Raw user input, possibly code-switched
      - user_id (string): User / agent identifier (default: "anonymous")
      - execute (boolean): Whether to also execute the intent (default: true)
    
    Returns:
      JSON with keys: language, intent, safety, execution (if execute=true)
    
    Examples:
      - "anna indha file ah csv convert pannu" → detects Tamil+English, extracts convert_format
      - "report banao sales ka" → detects Hindi+English, extracts generate_report
      - "drop database production" → BLOCKED by safety layer`,
        inputSchema: ProcessInputSchema,
        annotations: {
          readOnlyHint: false,
          destructiveHint: false,
          idempotentHint: true,
          openWorldHint: true,
        },
      },
      async (params) => {
        const lang = detectLanguage(params.text);
        const intent = await extractIntent(lang.normalizedText);
        const safety = await checkSafety(intent, params.text);
    
        const result: Record<string, unknown> = {
          language: lang,
          intent,
          safety,
        };
    
        if (params.execute) {
          const exec = await executeIntent(intent, safety);
          result["execution"] = exec;
        }
    
        return {
          content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }],
        };
      }
    );
  • Input validation schema (using Zod) for the `neuroverse_process` tool.
    const ProcessInputSchema = z
      .object({
        text: z
          .string()
          .min(1, "Text is required")
          .max(5000, "Text must not exceed 5000 characters")
          .describe("Raw user input (may be code-switched, e.g. Tamil+English)"),
        user_id: z
          .string()
          .default("anonymous")
          .describe("Identifier for the user / agent"),
        execute: z
          .boolean()
          .default(true)
          .describe("If true, also execute the extracted intent after safety check"),
      })
      .strict();

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/joshua400/neuroverse'

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