Skip to main content
Glama
orneryd

M.I.M.I.R - Multi-agent Intelligent Memory & Insight Repository

by orneryd
pctx-tool.md1.16 kB
[**mimir v1.0.0**](../README.md) *** [mimir](../README.md) / orchestrator/pctx-tool # orchestrator/pctx-tool ## Functions ### createPCTXTool() > **createPCTXTool**(`pctxUrl`): `DynamicStructuredTool`\<`ZodObject`\<\{ `code`: `ZodString`; \}, `$strip`\>, \{ `code`: `string`; \}, \{ `code`: `string`; \}, `any`\> Defined in: src/orchestrator/pctx-tool.ts:22 Create PCTX execution tool This tool allows agents to write TypeScript code that executes in PCTX's Deno sandbox. The code has access to all Mimir functions via the `Mimir` namespace. Benefits: - 90-98% token reduction for multi-step operations - Type-safe TypeScript execution - All 13 Mimir tools available - Batch operations in single call #### Parameters ##### pctxUrl `string` #### Returns `DynamicStructuredTool`\<`ZodObject`\<\{ `code`: `ZodString`; \}, `$strip`\>, \{ `code`: `string`; \}, \{ `code`: `string`; \}, `any`\> *** ### isPCTXAvailable() > **isPCTXAvailable**(`pctxUrl?`): `Promise`\<`boolean`\> Defined in: src/orchestrator/pctx-tool.ts:132 Check if PCTX is configured and available #### Parameters ##### pctxUrl? `string` #### Returns `Promise`\<`boolean`\>

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/orneryd/Mimir'

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