MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / buildToolDefs

Function buildToolDefs

packages/plugins/graphql/src/sdk/plugin.ts:600–606  ·  view source on GitHub ↗
(prepared: readonly PreparedOperation[])

Source from the content-addressed store, hash-verified

598// ---------------------------------------------------------------------------
599
600const buildToolDefs = (prepared: readonly PreparedOperation[]): readonly ToolDef[] =>
601 prepared.map((p) => ({
602 name: ToolName.make(p.toolName),
603 description: p.description,
604 inputSchema: p.inputSchema,
605 annotations: annotationsFor(p.binding),
606 }));
607
608const toStoredOperations = (
609 slug: IntegrationSlug,

Callers 1

plugin.tsFile · 0.85

Calls 1

annotationsForFunction · 0.85

Tested by

no test coverage detected