Skip to main content
Glama

extract

Extract a named subsystem from EN source code to create standalone EN source code for structural analysis.

Instructions

Extract a named subsystem as standalone EN source code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesEN source code describing the system
subsystemYesName of the subsystem to extract

Implementation Reference

  • Registration and handler implementation for the 'extract' tool. It calls the generic callApi helper to communicate with the EN API.
    server.tool(
      "extract",
      "Extract a named subsystem as standalone EN source code.",
      {
        source: z.string().describe("EN source code describing the system"),
        subsystem: z.string().describe("Name of the subsystem to extract"),
      },
      async ({ source, subsystem }) => {
        const result = await callApi("extract", { source, subsystem });
        return {
          content: [{ type: "text" as const, text: result.text }],
          isError: result.isError,
        };
      }
    );

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/dushyant30suthar/endiagram-mcp'

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