Skip to main content
Glama

compose

Merge two system graphs into a unified model with entity linking to analyze combined topology and dependencies.

Instructions

Merge two EN graphs into one with entity linking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_aYesEN source code for the first system
source_bYesEN source code for the second system
linksYesEntity links between the two systems (e.g. 'a.node1=b.node2, a.node3=b.node4')

Implementation Reference

  • Registration and implementation of the 'compose' tool, which merges two EN graphs into one using entity links by calling the configured EN API.
    server.tool(
      "compose",
      "Merge two EN graphs into one with entity linking.",
      {
        source_a: z.string().describe("EN source code for the first system"),
        source_b: z.string().describe("EN source code for the second system"),
        links: z
          .string()
          .describe(
            "Entity links between the two systems (e.g. 'a.node1=b.node2, a.node3=b.node4')"
          ),
      },
      async ({ source_a, source_b, links }) => {
        const result = await callApi("compose", { source_a, source_b, links });
        return {
          content: [{ type: "text" as const, text: result.text }],
          isError: result.isError,
        };
      }
    );

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