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
| Name | Required | Description | Default |
|---|---|---|---|
| source_a | Yes | EN source code for the first system | |
| source_b | Yes | EN source code for the second system | |
| links | Yes | Entity links between the two systems (e.g. 'a.node1=b.node2, a.node3=b.node4') |
Implementation Reference
- src/index.ts:272-291 (handler)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, }; } );