Skip to main content
Glama
sorodriguezz

IRIS ObjectScript MCP Server

by sorodriguezz

open_class

Open InterSystems IRIS ObjectScript class documentation by class name to access detailed reference information and implementation examples for development.

Instructions

Abre Documatic por nombre de clase (ej. %Library.String).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
classYesClass name

Implementation Reference

  • Handler for the 'open_class' tool: extracts the class name from input arguments, validates it, fetches the class documentation using fetchClassDoc, and returns the content as text.
    case "open_class": { const className = args?.class as string; if (!className) { throw new Error("Class name is required"); } const doc = await fetchClassDoc(className); return { content: [ { type: "text", text: doc.text, }, ], }; }
  • Tool definition including name, description, and input schema for 'open_class', specifying a required 'class' string parameter with minLength 3.
    export const OPEN_CLASS: Tool = { name: "open_class", description: "Abre Documatic por nombre de clase (ej. %Library.String).", inputSchema: { type: "object", properties: { class: { type: "string", description: "Class name", minLength: 3, }, }, required: ["class"], }, };
  • Registers the OPEN_CLASS tool by importing and including it in the coreTools export's tools array.
    export const coreTools = async () => { return { tools: [SMART_SEARCH, SEARCH_OBJECTSCRIPT, OPEN_BY_KEY, OPEN_CLASS], }; };
  • Imports the OPEN_CLASS tool definition for use in core tools registration.
    import { OPEN_CLASS } from "./open-class.tool.js";

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