neuroverse_execute
Parse, safety-check, and execute user requests through an end-to-end pipeline for autonomous AI agents.
Instructions
Parse, safety-check, and execute a user request end-to-end.
Convenience tool that chains: Language → Intent → Safety → Execute.
Args:
text (string): Raw user input
user_id (string): User / agent identifier
Returns: JSON with safety verdict and execution result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw user input to parse, safety-check, and execute | |
| user_id | No | User / agent ID | anonymous |
Implementation Reference
- npm/src/index.ts:287-300 (handler)The actual handler function for the 'neuroverse_execute' tool, which chains intent extraction, safety checking, and execution.
async (params) => { const lang = detectLanguage(params.text); const intent = await extractIntent(lang.normalizedText); const safety = await checkSafety(intent, params.text); const exec = await executeIntent(intent, safety); return { content: [ { type: "text" as const, text: JSON.stringify({ intent, safety, execution: exec }, null, 2), }, ], }; - npm/src/index.ts:254-263 (schema)The schema definition for the 'neuroverse_execute' tool input parameters.
const SafeExecuteSchema = z .object({ text: z .string() .min(1) .max(5000) .describe("Raw user input to parse, safety-check, and execute"), user_id: z.string().default("anonymous").describe("User / agent ID"), }) .strict(); - npm/src/index.ts:265-286 (registration)Registration of the 'neuroverse_execute' tool with the MCP server.
server.registerTool( "neuroverse_execute", { title: "Safe Execute", description: `Parse, safety-check, and execute a user request end-to-end. Convenience tool that chains: Language → Intent → Safety → Execute. Args: - text (string): Raw user input - user_id (string): User / agent identifier Returns: JSON with safety verdict and execution result`, inputSchema: SafeExecuteSchema, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true, }, },