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

Function descriptionFor

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected