MCP Tools Reference: mapscodeassist.googleapis.com

Tool: retrieve-google-maps-platform-docs

Searches Google Maps Platform documentation, code samples, architecture center, trust center, GitHub repositories (including sample code and client libraries for react-google-maps, flutter, compose, utilities, swiftui, and more), and terms of service to answer user questions. CRITICAL: You MUST call the retrieve-instructions tool or load the instructions resource BEFORE using this tool. This provides essential context required for this tool to function correctly.

Input Schema

Request message for RetrieveContexts.

RetrieveContextsRequest

JSON representation
{
  "llmQuery": string,
  "filter": string,
  "source": string
}
Fields
llmQuery

string

Required. The natural language query. This is the query that generated by the LLM and is not the direct user query.

filter

string

Optional. Optional filters to narrow the retrieval, e.g., API names, product areas.

source

string

Optional. Indicates the source of the query, used for analytics. For example, this could be the name of the client application or the UI component that generated the query. The format should be limited to 64 ASCII characters. E.g., "my-client-app", "web-console-search".

Output Schema

Response message for RetrieveContexts.

RetrieveContextsResponse

JSON representation
{
  "contexts": [
    {
      object (Context)
    }
  ]
}
Fields
contexts[]

object (Context)

List of retrieved contexts.

Context

JSON representation
{
  "text": string,
  "score": number,
  "documentationUri": string,
  "apiState": string
}
Fields
text

string

The retrieved text snippet.

score

number

Relevance score.

documentationUri

string

Original documentation URL.

apiState

string

Output only. API state. Must be one of: "ga", "preview", "alpha", "beta", or "deprecated".

Tool Annotations

Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌