xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
Tool Skill
Mapbox logo

Matrix Tool

matrix_tool

Calculates travel times and distances between multiple points using Mapbox Matrix API.

$0.01/call
Flat rate
Mapbox
Raw SKILL.mdTool Page

When to Use

Use this tool when you need to calculates travel times and distances between multiple points using mapbox matrix api.. This is part of the Mapbox provider on xpay✦.

MCP Connection

Connect to xpay✦ to access this tool (and 8+ others):

{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}

For Claude Code:

claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"

How to Execute

Use the xpay✦ meta-tools to run this tool:

  1. xpay_details — Get full input schema: xpay_details("mapbox/matrix_tool")
  2. xpay_run — Execute: xpay_run("mapbox/matrix_tool", { ...inputs })

Input Parameters

ParameterTypeRequiredDescription
bearingsstringNoA semicolon-separated list of headings and allowed deviation indicating the direction of movement. Input as two comma-separated values per location: a heading course measured clockwise from true north between 0 and 360, and the range of degrees by which the angle can deviate (recommended value is 45° or 90°), formatted as {angle,degrees}. If provided, the number of bearings must equal the number of coordinates. You can skip a coordinate and show its position in the list with the ; separator.
sourcesstringNoUse the coordinates at given indices as sources. Possible values are: a semicolon-separated list of 0-based indices, or "all" (default). The option "all" allows using all coordinates as sources.
profilestringYesRouting profile for different modes of transport. Options: - driving-traffic: automotive with current traffic conditions (limited to 10 coordinates) - driving: automotive based on typical traffic - walking: pedestrian/hiking - cycling: bicycle
destinationsstringNoUse the coordinates at given indices as destinations. Possible values are: a semicolon-separated list of 0-based indices, or "all" (default). The option "all" allows using all coordinates as destinations.
coordinatesarrayYesArray of coordinate objects with longitude and latitude properties. Must include at least 2 coordinate pairs. Up to 25 coordinates total are supported for most profiles (10 for driving-traffic).
annotationsstringNoSpecifies the resulting matrices. Possible values are: duration (default), distance, or both values separated by a comma.
approachesstringNoA semicolon-separated list indicating the side of the road from which to approach waypoints. Accepts "unrestricted" (default, route can arrive at the waypoint from either side of the road) or "curb" (route will arrive at the waypoint on the driving_side of the region). If provided, the number of approaches must be the same as the number of waypoints. You can skip a coordinate and show its position with the ; separator.

Pricing

  • Cost: $0.01/call
  • Balance check: Use xpay_balance to check remaining credits
  • Get your API key at xpay.tools — $5 free credits included

Related Skills

  • Mapbox (all tools) — 9 tools
  • Version Tool — $0.01/call
  • Category Search Tool — $0.01/call
  • Directions Tool — $0.01/call
  • Forward Geocode Tool — $0.01/call
  • Isochrone Tool — $0.01/call

Links

  • Tool page: https://xpay.tools/mapbox/matrix-tool/
  • Provider: https://xpay.tools/mapbox/
  • All tools: https://xpay.tools/explore
How to Execute
// 1. Get full schema
xpay_details("mapbox/matrix_tool")
// 2. Execute
xpay_run("mapbox/matrix_tool", { ...inputs })
Input Parameters
ParameterTypeRequiredDescription

bearings

stringNo

A semicolon-separated list of headings and allowed deviation indicating the direction of movement. Input as two comma-separated values per location: a heading course measured clockwise from true north between 0 and 360, and the range of degrees by which the angle can deviate (recommended value is 45° or 90°), formatted as {angle,degrees}. If provided, the number of bearings must equal the number of coordinates. You can skip a coordinate and show its position in the list with the ; separator.

sources

stringNo

Use the coordinates at given indices as sources. Possible values are: a semicolon-separated list of 0-based indices, or "all" (default). The option "all" allows using all coordinates as sources.

profile

string
Yes

Routing profile for different modes of transport. Options: - driving-traffic: automotive with current traffic conditions (limited to 10 coordinates) - driving: automotive based on typical traffic - walking: pedestrian/hiking - cycling: bicycle

destinations

stringNo

Use the coordinates at given indices as destinations. Possible values are: a semicolon-separated list of 0-based indices, or "all" (default). The option "all" allows using all coordinates as destinations.

coordinates

array
Yes

Array of coordinate objects with longitude and latitude properties. Must include at least 2 coordinate pairs. Up to 25 coordinates total are supported for most profiles (10 for driving-traffic).

annotations

stringNo

Specifies the resulting matrices. Possible values are: duration (default), distance, or both values separated by a comma.

approaches

stringNo

A semicolon-separated list indicating the side of the road from which to approach waypoints. Accepts "unrestricted" (default, route can arrive at the waypoint from either side of the road) or "curb" (route will arrive at the waypoint on the driving_side of the region). If provided, the number of approaches must be the same as the number of waypoints. You can skip a coordinate and show its position with the ; separator.

Related Tools from Mapbox
Version Tool — $0.01Category Search Tool — $0.01Directions Tool — $0.01Forward Geocode Tool — $0.01Isochrone Tool — $0.01Poi Search Tool — $0.01Reverse Geocode Tool — $0.01Static Map Image Tool — $0.01
Install Skill
Claude Code
claude /install-skill https://xpay.tools/skills/mapbox/matrix-tool/SKILL.md
CLI
npx @xpaysh/cli install mapbox/matrix-tool
Manual
curl -o SKILL.md https://xpay.tools/skills/mapbox/matrix-tool/SKILL.md
Pricing

Cost

$0.01/call

Model

Flat rate

Provider

Mapbox

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service