MCPcopy Create free account
hub / github.com/lightdash/lightdash / tool

Function tool

scripts/mcp-tools-diff.test.ts:24–31  ·  view source on GitHub ↗
(name: string, props: Record<string, string> = {}, required: string[] = [])

Source from the content-addressed store, hash-verified

22
23const snap = (tools: SnapshotTool[]): ToolsSnapshot => ({ schemaVersion: '1', tools });
24const tool = (name: string, props: Record<string, string> = {}, required: string[] = []): SnapshotTool => ({
25 name,
26 inputSchema: {
27 type: 'object',
28 properties: Object.fromEntries(Object.entries(props).map(([k, t]) => [k, { type: t }])),
29 required,
30 },
31});
32
33test('identical snapshots => not breaking', () => {
34 const a = snap([tool('find_explores', { q: 'string' }), tool('run_query', { sql: 'string' })]);

Callers 15

getRunQueryFunction · 0.85
getReadPinnedThreadFunction · 0.85
getLoadSkillFunction · 0.85
getEditContentFunction · 0.85
getReadContentFunction · 0.85
getImproveContextFunction · 0.85
getDiscoverReposFunction · 0.85
getExploreRepoFunction · 0.85
getGenerateUuidsFunction · 0.85
getLoadProjectContextFunction · 0.85
getSetupPreviewDeployFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected