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

Function descriptionFor

packages/plugins/openapi/src/sdk/backing.ts:206–211  ·  view source on GitHub ↗
(def: ToolDefinition)

Source from the content-addressed store, hash-verified

204 });
205
206const descriptionFor = (def: ToolDefinition): string => {
207 const op = def.operation;
208 return Option.getOrElse(op.description, () =>
209 Option.getOrElse(op.summary, () => `${op.method.toUpperCase()} ${op.pathTemplate}`),
210 );
211};
212
213/**
214 * Copyable contract appended to the stored description of any tool whose

Calls

no outgoing calls

Tested by

no test coverage detected