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

Function getToolMetadata

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

Source from the content-addressed store, hash-verified

358 * Get complete tool metadata for MCP tools/list response.
359 */
360export function getToolMetadata(component: ComponentDefinition): ToolMetadata {
361 return {
362 name: getToolName(component),
363 description: getToolDescription(component),
364 inputSchema: getToolSchema(component),
365 };
366}

Callers 2

Calls 3

getToolNameFunction · 0.85
getToolDescriptionFunction · 0.85
getToolSchemaFunction · 0.85

Tested by

no test coverage detected