Skip to main content
Glama
sorodriguezz

IRIS ObjectScript MCP Server

by sorodriguezz

open_by_key

Access InterSystems IRIS ObjectScript documentation pages directly using their official document keys to find specific technical information quickly.

Instructions

Open a documentation page by its official KEY

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesDocument key

Implementation Reference

  • Handler logic for the 'open_by_key' tool: extracts 'key' from arguments, fetches document content using fetchDocByKey, and returns it as text 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,
          },
        ],
      };
    }
  • Tool definition including name, description, and input schema requiring a 'key' string.
    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"],
      },
    };
  • Registration of the 'open_by_key' tool (as OPEN_BY_KEY) in the core tools array provided by coreTools function.
    export const coreTools = async () => {
      return {
        tools: [SMART_SEARCH, SEARCH_OBJECTSCRIPT, OPEN_BY_KEY, OPEN_CLASS],
      };
    };

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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