Skip to main content
Glama
sorodriguezz

IRIS ObjectScript MCP Server

by sorodriguezz

open_by_key

Access InterSystems IRIS ObjectScript documentation pages using their official document keys to quickly retrieve specific technical information and reference materials.

Instructions

Open a documentation page by its official KEY

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesDocument key

Implementation Reference

  • The switch case handler for the 'open_by_key' tool, which validates the input key, fetches the document content using fetchDocByKey, and returns it formatted as MCP content.
    case "open_by_key": { const key = args?.key as string; if (!key) { throw new Error("Key is required"); } const content = await fetchDocByKey(key); return { content: [ { type: "text", text: content.text, }, ], }; }
  • Defines the MCP tool metadata including name, description, and input schema requiring a 'key' parameter (string, min length 3).
    export const OPEN_BY_KEY: Tool = { name: "open_by_key", description: "Open a documentation page by its official KEY", inputSchema: { type: "object", properties: { key: { type: "string", description: "Document key", minLength: 3, }, }, required: ["key"], }, };
  • Registers the 'open_by_key' tool (imported as OPEN_BY_KEY) in the core tools list returned by coreTools function.
    export const coreTools = async () => { return { tools: [SMART_SEARCH, SEARCH_OBJECTSCRIPT, OPEN_BY_KEY, OPEN_CLASS], }; };

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/sorodriguezz/iris-mcp'

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