Documentation
¶
Index ¶
- func CalculateAge(dobStr string) (int, error)
- func GetLatLongForCity(city string, countryCode string) (string, float64, float64, error)
- func MCPServerInit()
- type Input_GetAge
- type Input_GetAstrologicalChart
- type Input_GetLatLong
- type Output_GetAge
- type Output_GetAstrologicalChart
- type Output_GetLatLong
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateAge ¶
func GetLatLongForCity ¶
func MCPServerInit ¶
func MCPServerInit()
Types ¶
type Input_GetAge ¶
type Input_GetAge struct {
DOB string `json:"dob" jsonschema:"The Date of birth in DD/MM/YYYY"`
}
type Input_GetAstrologicalChart ¶
type Input_GetAstrologicalChart struct {
DOB string `json:"dob" jsonschema:"The Date of birth in DD/MM/YYYY"`
TOB string `json:"tob" jsonschema:"The Time of birth in HH:MM"`
City string `json:"city" jsonschema:"The City of birth"`
CountryCode string `json:"countryCode" jsonschema:"The Country Code, for the country of birth. Eg: IN, US"`
}
type Input_GetLatLong ¶
type Output_GetAge ¶
type Output_GetAge struct {
Age string `json:"age" jsonschema:"The age of the user"`
}
func GetAge ¶
func GetAge(ctx context.Context, req *mcp.CallToolRequest, input Input_GetAge) ( *mcp.CallToolResult, Output_GetAge, error, )
type Output_GetAstrologicalChart ¶
type Output_GetAstrologicalChart struct {
Zodiac map[string]string `json:"zodiac" jsonschema:"The zodiac where each planet is placed"`
House map[string]string `json:"house" jsonschema:"The house number where each planet is placed"`
Text string `json:"text" jsonschema:"The astrological position of planets in the zodiac"`
}
type Output_GetAstrologicalChart struct {
Text string `json:"text" jsonschema:"The astrological position of planets in the zodiac"`
}
func GetAstrologicalChart ¶
func GetAstrologicalChart(ctx context.Context, req *mcp.CallToolRequest, input Input_GetAstrologicalChart) ( *mcp.CallToolResult, *Output_GetAstrologicalChart, error, )
type Output_GetLatLong ¶
type Output_GetLatLong struct {
City string `json:"city" jsonschema:"The closest matching city"`
Lat string `json:"lat" jsonschema:"The latitude of the city"`
Long string `json:"long" jsonschema:"The longitude of the city"`
}
func GetLatLong ¶
func GetLatLong(ctx context.Context, req *mcp.CallToolRequest, input Input_GetLatLong) ( *mcp.CallToolResult, *Output_GetLatLong, error, )
Click to show internal directories.
Click to hide internal directories.