MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ToAPISchema

Method ToAPISchema

tools/mcp.go:91–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 err,
90 ), nil
91 }
92 return output, nil
93}
94
95func (t *MCPDynamicTool) ToAPISchema() map[string]any {
96 return map[string]any{
97 "name": t.Name(),
98 "description": t.Description(),
99 "input_schema": BuildMCPInputSchema(t.ToolName, t.RawSchema),
100 }

Calls 3

BuildMCPInputSchemaFunction · 0.85
NameMethod · 0.65
DescriptionMethod · 0.65