MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getToolDescription

Function getToolDescription

packages/component-sdk/src/tool-helpers.ts:349–355  ·  view source on GitHub ↗
(component: ComponentDefinition)

Source from the content-addressed store, hash-verified

347 * Uses toolProvider.description if specified, otherwise uses component docs/description.
348 */
349export function getToolDescription(component: ComponentDefinition): string {
350 if (component.toolProvider?.description) {
351 return component.toolProvider.description;
352 }
353
354 return component.ui?.description ?? component.docs ?? component.label;
355}
356
357/**
358 * Get complete tool metadata for MCP tools/list response.

Callers 1

getToolMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected