Ask
Questions about places, answered by a language model over search
Whether the user can use Ask
Ask runs on the user's own OpenRouter key when they have one, otherwise on the system key, which allows questions per UTC month by plan: ask:trial 5 (ASK_QUESTIONS_TRIAL), ask:basic 50 (ASK_QUESTIONS_BASIC) and premium:ask 1000 (ASK_QUESTIONS_PREMIUM), the best one held winning; 0 means no limit. On the system key, quota carries used, limit, remaining and resetsAt, or is null without a limit. reason is not-configured when no key exists at all, not-permitted when only the system key exists and the user holds none of those permissions, quota-exceeded (with limit and resetsAt) when this month's questions are used up, and turned-off when the user switched Ask off in their settings.
Response Body
curl -X GET "https://example.com/ask/access"fetch("https://example.com/ask/access")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://example.com/ask/access"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://example.com/ask/access"
response = requests.request("GET", url)
print(response.text)Answer a question about places
Streams Server-Sent Events while a language model searches Parchment's place data. step events report each search as it runs (running, then done or failed); reach carries a travel-time polygon when the question implies one; answer carries a short text and the cited places, every one of which came from a search; error and then done close the stream. history holds earlier turns of the same conversation, oldest first. here and places give the model names ("here", "home") it can route between; their coordinates go to tools, never into the prompt. A trip event carries the trip the answer recommends, for opening in Directions; route and canvas events name a route or canvas saved to the user's library. Every question counts toward the user's monthly usage; on the system key, a used-up allowance returns 429 with reason: quota-exceeded and resetsAt.
Request Body
application/jsonRequiredquestionRequiredstring1Maximum length: 500historyarray<object>placeIdstringA place the question is about, e.g. "osm/node/123". Its details and reviews are read first.
pointobjectA spot on the map the question is about, such as an address, when it has no placeId
latnumberThe map's centre
-90Maximum: 90lngnumber-180Maximum: 180hereobjectThe device's own position, when the user has shared it
placesarray<object>Saved places like Home and Work, which the model may name as trip ends without seeing their coordinates
unitsstringvehiclesarray<object>The user's vehicles, so Ask plans trips the way Directions does
routingPreferencesobjectexcludedModesarray<string>Modes the user does not use, as Directions sends them
Response Body
curl -X POST "https://example.com/ask" \
-H "Content-Type: application/json" \
-d '{
"question": "string",
"history": [
{
"role": "user",
"content": "string"
}
],
"placeId": "string",
"point": {
"lat": -90,
"lng": -180,
"name": "string"
},
"lat": -90,
"lng": -180,
"here": {
"lat": -90,
"lng": -180
},
"places": [
{
"name": "string",
"lat": -90,
"lng": -180
}
],
"units": "metric",
"vehicles": [
{
"id": "string",
"type": "car",
"energyType": "electric",
"name": "string",
"location": {
"lat": 0,
"lng": 0
}
}
],
"routingPreferences": {
"highways": 1,
"tolls": 1,
"ferries": 1,
"hills": 1,
"surfaceQuality": 1,
"litPaths": 1,
"safetyVsSpeed": 1,
"shortest": true,
"preferHOV": true,
"wheelchairAccessible": true,
"cyclingSpeed": 1,
"walkingSpeed": 0.5,
"bicycleType": "string",
"maxWalkingDistance": 0,
"maxTransfers": 0,
"transitBufferMinutes": 5,
"useKnownVehicleLocations": true,
"useKnownParkingLocations": true,
"includePrivateParking": true,
"routingEngine": "string",
"customModelOverride": "string",
"avoidHighways": true,
"avoidTolls": true,
"avoidFerries": true,
"avoidHills": true,
"preferLitPaths": true,
"preferPavedPaths": true,
"safetyVsEfficiency": 1
},
"excludedModes": [
"transit"
]
}'const body = JSON.stringify({
"question": "string",
"history": [
{
"role": "user",
"content": "string"
}
],
"placeId": "string",
"point": {
"lat": -90,
"lng": -180,
"name": "string"
},
"lat": -90,
"lng": -180,
"here": {
"lat": -90,
"lng": -180
},
"places": [
{
"name": "string",
"lat": -90,
"lng": -180
}
],
"units": "metric",
"vehicles": [
{
"id": "string",
"type": "car",
"energyType": "electric",
"name": "string",
"location": {
"lat": 0,
"lng": 0
}
}
],
"routingPreferences": {
"highways": 1,
"tolls": 1,
"ferries": 1,
"hills": 1,
"surfaceQuality": 1,
"litPaths": 1,
"safetyVsSpeed": 1,
"shortest": true,
"preferHOV": true,
"wheelchairAccessible": true,
"cyclingSpeed": 1,
"walkingSpeed": 0.5,
"bicycleType": "string",
"maxWalkingDistance": 0,
"maxTransfers": 0,
"transitBufferMinutes": 5,
"useKnownVehicleLocations": true,
"useKnownParkingLocations": true,
"includePrivateParking": true,
"routingEngine": "string",
"customModelOverride": "string",
"avoidHighways": true,
"avoidTolls": true,
"avoidFerries": true,
"avoidHills": true,
"preferLitPaths": true,
"preferPavedPaths": true,
"safetyVsEfficiency": 1
},
"excludedModes": [
"transit"
]
})
fetch("https://example.com/ask", {
body
})package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://example.com/ask"
body := strings.NewReader(`{
"question": "string",
"history": [
{
"role": "user",
"content": "string"
}
],
"placeId": "string",
"point": {
"lat": -90,
"lng": -180,
"name": "string"
},
"lat": -90,
"lng": -180,
"here": {
"lat": -90,
"lng": -180
},
"places": [
{
"name": "string",
"lat": -90,
"lng": -180
}
],
"units": "metric",
"vehicles": [
{
"id": "string",
"type": "car",
"energyType": "electric",
"name": "string",
"location": {
"lat": 0,
"lng": 0
}
}
],
"routingPreferences": {
"highways": 1,
"tolls": 1,
"ferries": 1,
"hills": 1,
"surfaceQuality": 1,
"litPaths": 1,
"safetyVsSpeed": 1,
"shortest": true,
"preferHOV": true,
"wheelchairAccessible": true,
"cyclingSpeed": 1,
"walkingSpeed": 0.5,
"bicycleType": "string",
"maxWalkingDistance": 0,
"maxTransfers": 0,
"transitBufferMinutes": 5,
"useKnownVehicleLocations": true,
"useKnownParkingLocations": true,
"includePrivateParking": true,
"routingEngine": "string",
"customModelOverride": "string",
"avoidHighways": true,
"avoidTolls": true,
"avoidFerries": true,
"avoidHills": true,
"preferLitPaths": true,
"preferPavedPaths": true,
"safetyVsEfficiency": 1
},
"excludedModes": [
"transit"
]
}`)
req, _ := http.NewRequest("POST", url, body)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://example.com/ask"
body = {
"question": "string",
"history": [
{
"role": "user",
"content": "string"
}
],
"placeId": "string",
"point": {
"lat": -90,
"lng": -180,
"name": "string"
},
"lat": -90,
"lng": -180,
"here": {
"lat": -90,
"lng": -180
},
"places": [
{
"name": "string",
"lat": -90,
"lng": -180
}
],
"units": "metric",
"vehicles": [
{
"id": "string",
"type": "car",
"energyType": "electric",
"name": "string",
"location": {
"lat": 0,
"lng": 0
}
}
],
"routingPreferences": {
"highways": 1,
"tolls": 1,
"ferries": 1,
"hills": 1,
"surfaceQuality": 1,
"litPaths": 1,
"safetyVsSpeed": 1,
"shortest": true,
"preferHOV": true,
"wheelchairAccessible": true,
"cyclingSpeed": 1,
"walkingSpeed": 0.5,
"bicycleType": "string",
"maxWalkingDistance": 0,
"maxTransfers": 0,
"transitBufferMinutes": 5,
"useKnownVehicleLocations": true,
"useKnownParkingLocations": true,
"includePrivateParking": true,
"routingEngine": "string",
"customModelOverride": "string",
"avoidHighways": true,
"avoidTolls": true,
"avoidFerries": true,
"avoidHills": true,
"preferLitPaths": true,
"preferPavedPaths": true,
"safetyVsEfficiency": 1
},
"excludedModes": [
"transit"
]
}
response = requests.request("POST", url, json = body, headers = {
"Content-Type": "application/json"
})
print(response.text)MCP event stream (not offered)
The MCP server is stateless and sends no server-initiated messages, so this always answers 405.
Response Body
curl -X GET "https://example.com/mcp"fetch("https://example.com/mcp")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://example.com/mcp"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://example.com/mcp"
response = requests.request("GET", url)
print(response.text)Model Context Protocol endpoint
A stateless MCP server (Streamable HTTP, JSON responses) exposing Ask's tools to MCP clients such as Claude or ChatGPT: place search and details, what is at a point, trip planning, transit departures and lines, weather and wildfires, the user's saved places, collections, routes, canvases and vehicles, and building, changing, sharing and archiving routes, canvases and saved places in their library. tools/list describes each. Send one JSON-RPC message per request; supports initialize, ping, tools/list and tools/call. Notifications are acknowledged with 202. Needs a signed-in user with the premium:ask permission and Ask turned on in their settings, by session cookie or Authorization: Bearer <session token>. Tool results are JSON text; a failed search returns isError: true with the reason.
Request Body
application/jsonRequiredjsonrpcRequiredstringidstring | number | null | nullmethodstringparamsobjectResponse Body
curl -X POST "https://example.com/mcp" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "string",
"method": "string",
"params": {}
}'const body = JSON.stringify({
"jsonrpc": "2.0",
"id": "string",
"method": "string",
"params": {}
})
fetch("https://example.com/mcp", {
body
})package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://example.com/mcp"
body := strings.NewReader(`{
"jsonrpc": "2.0",
"id": "string",
"method": "string",
"params": {}
}`)
req, _ := http.NewRequest("POST", url, body)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://example.com/mcp"
body = {
"jsonrpc": "2.0",
"id": "string",
"method": "string",
"params": {}
}
response = requests.request("POST", url, json = body, headers = {
"Content-Type": "application/json"
})
print(response.text)End an MCP session (not offered)
The MCP server keeps no sessions, so this always answers 405.
Response Body
curl -X DELETE "https://example.com/mcp"fetch("https://example.com/mcp")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://example.com/mcp"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://example.com/mcp"
response = requests.request("DELETE", url)
print(response.text)