Skip to main content
Glama
direction.ts1.18 kB
/* * @Author: AidenYangX * @Email: xscs709560271@gmail.com * @Date: 2024-12-21 22:39:32 * @Description: Direction Definition */ import { Tool } from "@modelcontextprotocol/sdk/types.js"; export const DIRECTIONS_TOOL: Tool = { name: "mapbox_directions", description: "Get navigation route between two points", inputSchema: { type: "object", properties: { coordinates: { type: "array", items: { type: "object", properties: { longitude: { type: "number", description: "Longitude", minimum: -180, maximum: 180, }, latitude: { type: "number", description: "Latitude", minimum: -90, maximum: 90, }, }, required: ["longitude", "latitude"], }, description: "Array of coordinates", }, profile: { type: "string", description: "Navigation mode", enum: ["driving-traffic", "driving", "walking", "cycling"], default: "driving-traffic", }, }, required: ["coordinates"], }, };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AidenYangX/mapbox-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server