Google Gemini
Use Park Graph in Gemini through the hosted MCP server, with no API key, or build your own Gemini agent with function declarations on the REST API.
Last updated November 3, 2026
Every payment completes on parkgraph.com with the driver present; no tool charges money on its own.
Park Graph in Gemini and Google AI Mode (connected apps)
Park Graph is submitted to Google's waitlist for connected apps in Gemini and AI Mode. It isn't listed there yet. This is the listing as submitted:
Find Park Graph parking near where you're going, see the price for your hours, and get the lot's pay link, with no account or app.
What it can do
- Find Park Graph lots near a place, nearest first, with spaces left and the current rate.
- Price a stay for the hours you need and get the lot's pay page, or a short hold at lots that take holds.
- Check a parked car's time, or price more time, with the receipt's phone code and the plate's last 3 characters.
Example prompts
- “@Park Graph find parking near downtown Redmond, Washington”
- “@Park Graph how much is 3 hours at 16300 Redmond Way in Redmond?”
- “@Park Graph book 2 hours at 16300 Redmond Way and send me the pay link”
Gemini CLI
Add the hosted MCP server in one command. No install and no key. Then run /mcp to check that Park Graph is connected.
gemini mcp add --transport http --scope user parkgraph https://parkgraph.com/api/mcpAntigravity CLI and other clients: setup for every MCP client.
Build with Gemini function calling (REST API, API key)
Integrate Park Graph with Google Gemini using function declarations. Gemini agents can search, book, and manage parking with structured function calling.
For developers writing their own Gemini agent. The API key on this part of the page is for the REST API only; the hosted MCP server doesn't need one.
Recommended model: gemini-2.5-pro
How It Works
Gemini uses a function_declarations array with parameter schemas. Park Graph provides 4 function declarations that Gemini can call to interact with the parking API.
Quick Start
curl https://parkgraph.com/api/v1/lots/search \
-H "Authorization: Bearer pk_live_..." \
-G -d "lat=39.1911" -d "lng=-106.8175" -d "radius_km=5"Function Declarations
searchParkingSearch for available parking lots by lat/lng
checkAvailabilityCheck availability at a specific lot
getRatesGet pricing rules for a specific lot
createSessionBook a parking session at a lot
getSessionGet parking session status by UUID
endSessionEnd a session. This REST call settles the charge with the operator's API key.
Full Schema
{
"function_declarations": [
{
"name": "searchParking",
"description": "Search for available parking lots near coordinates via Park Graph",
"parameters": {
"type": "OBJECT",
"properties": {
"latitude": { "type": "NUMBER", "description": "Search center latitude" },
"longitude": { "type": "NUMBER", "description": "Search center longitude" },
"radius_km": { "type": "NUMBER", "description": "Radius in kilometers" },
"limit": { "type": "NUMBER", "description": "Max results" }
},
"required": ["latitude", "longitude"]
}
},
{
"name": "checkAvailability",
"description": "Check real-time availability at a specific lot",
"parameters": {
"type": "OBJECT",
"properties": {
"lot_id": { "type": "STRING", "description": "Lot UUID" }
},
"required": ["lot_id"]
}
},
{
"name": "getRates",
"description": "Get pricing rules for a specific lot",
"parameters": {
"type": "OBJECT",
"properties": {
"lot_id": { "type": "STRING", "description": "Lot UUID" }
},
"required": ["lot_id"]
}
}
]
}Example Conversation
Authentication
Your Gemini function handler calls the Park Graph API using a Bearer token. Get your API key from the dashboard.
Authorization: Bearer pk_live_...Try It
Test the search_parking function declaration:
Tracking
Sessions appear with agent_name: "gemini", agent_platform: "google".
Limitations
- Function calling requires
gemini-2.5-proorgemini-2.5-flash - Gemini may call multiple functions in parallel
- Response format differs slightly from OpenAI (uses OBJECT type names)
Security model
The Park Graph Gemini integration sits behind the same security perimeter as the dashboard and the public website. The notes below summarise the controls that apply to every Gemini integration request; a deeper write-up lives in the developer changelog.
No tool on the hosted MCP server needs an API key. The key notes below are for the REST API.
Authentication
Every authenticated request carries an API key in the Authorization header (`Bearer pk_live_…`). Keys are issued per project from /dashboard/api-keys. Rotation is an HTTP DELETE + re-create in the dashboard; old keys are revoked immediately. Live and sandbox keys use the `pk_live_` and `pk_test_` prefixes so they cannot be confused in code review.
Transport security
TLS 1.3 with HSTS preloaded on every host (parkgraph.com, *.parkgraph.com). Plaintext requests are rejected at the edge with HTTP 426. Certificates are issued through the public Let's Encrypt CA and pinned in the CT logs.
Payment handling
Card data is tokenised inside Stripe Elements on the driver's device — Park Graph never observes raw PANs and is therefore SAQ-A scope. Sessions reference Stripe PaymentIntents by id only; webhooks are signed by Stripe using HMAC-SHA256 and verified server-side before any state change.
Data retention
Driver email addresses and license plates are retained for the lifetime of the operator's relationship with Park Graph (or 30 days after a verified delete request, whichever comes first). Search-only requests with no booking outcome are anonymised after 24 hours. Aggregated occupancy data has no personal identifiers and is retained indefinitely.
Audit trail
Every write — session create, end, extend, refund, rate change, agent registration — appends an immutable row to the audit_log table with actor type, actor id, and the diff. The log is exposed to operators through the dashboard activity feed and via a per-lot CSV export. Deletes are tombstoned, not hard-removed.
Rate limits
A request that sends an API key is counted by its key; a request without one, by its IP. Limits count fixed one-minute windows, and the daily quota counts the UTC day. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers; 429 responses additionally carry Retry-After. Retry-After is never more than 60 seconds, and the error message says how long to wait. Bursts above the per-minute budget should be backed off with jitter — the official SDK does this automatically.
The hosted MCP server, which needs no key, allows 60 tool calls a minute per caller: each MCP session (Mcp-Session-Id), signed-in driver, ChatGPT conversation or API key. One address can send up to 600 a minute in all, so assistants that share addresses don't slow each other's users down. The table below is for the REST API.
| Scope | Budget | Window |
|---|---|---|
| Lot search without a key (`/lots/search`) | 60 requests | per IP per minute |
| Other public reads without a key (lot detail, availability, GeoJSON, QR) | 100 requests | per IP per minute, each endpoint |
| Other public reads sent with an API key | 100 requests | per API key per minute, each endpoint |
| Requests with an API key (Starter and Pro) | 60 requests | per API key per minute |
| Requests with an API key (Enterprise) | 120 requests | per API key per minute |
| Daily quota for every API key | 10,000 requests | per API key per UTC day |
| Sandbox endpoints (`pk_test_…` keys) | 30 requests | per key per minute |
Need a higher ceiling? Email developers@parkgraph.com with your projected throughput and we will lift the burst budget on a per-key basis.
Error codes
Every error response uses the same envelope: { "error": { "code": "…", "message": "…", "request_id": "req_…" } }. The HTTP status indicates the broad class; the code field disambiguates within a class. Surface the request_id to your support team — we can look up the full server-side trace by id alone.
| Code | HTTP status | Meaning |
|---|---|---|
| BAD_REQUEST | 400 | Required parameter missing or out of range. Response body lists the offending field. |
| UNAUTHORIZED | 401 | Missing or malformed Authorization header. Send `Authorization: Bearer pk_live_…`. |
| FORBIDDEN | 403 | API key is valid but the plan does not include this scope (e.g. agent or intelligence endpoints on Starter). |
| NOT_FOUND | 404 | Lot, session, or webhook id does not exist or has been deleted. |
| CONFLICT | 409 | Idempotent retry of a non-terminal session, or attempt to end an already-completed session. |
| RATE_LIMITED | 429 | A rate limit was reached (per API key, or per IP without one). Inspect `Retry-After` and back off. |
| PAYLOAD_TOO_LARGE | 413 | Webhook delivery body or batch upload exceeds 1 MB. |
| INTERNAL | 500 | Unexpected server error. Park Graph automatically opens an incident and retries idempotent writes. |
| BAD_GATEWAY | 502 | Upstream payment processor returned an error. Safe to retry with the same idempotency key. |
AI-agent use cases
Park Graph is built for agentic distribution: every commercial endpoint (search, availability, rates, sessions, refunds) is callable by an LLM through MCP, OpenAI Actions, Gemini function declarations, xAI function calling, Perplexity Agent API, or Microsoft Copilot plugins. The grid below maps the most common agent-driven workflows on top of the Gemini integration.
On the hosted MCP server, which needs no key, an assistant can search lots, read rates, quote a stay and hold a space, and the driver pays on parkgraph.com. Starting sessions and refunds through the REST API take an operator's API key.
Conversational booking
An end user asks ChatGPT, Claude, Gemini, Grok, or Perplexity to find parking near a destination. The model calls /lots/search, summarises 3-5 lots with prices and walking distance, then on confirmation calls /sessions to start a session and returns the QR-coded receipt URL.
Travel-app companion
A flight-booking or hotel-booking assistant pre-fetches arrival-airport parking for the trip dates and displays inline lot suggestions inside its itinerary view. The same surface backs in-app booking and a fallback web checkout.
Voice-first ordering
Realtime voice assistants (e.g. gpt-realtime, Gemini Live, Grok Voice) confirm a lot, plate, and duration verbally, then call /sessions and read back the session code. Drivers never touch a screen until they walk away from the car.
Fleet dispatcher
An autonomous-vehicle fleet (rideshare, delivery, robotaxi) holds AV-fleet allocations with /av-fleet/dispatch, then commits the spot at handoff. See /developers/av-fleet for the AV-specific contract.
Procurement / expense agent
An accounts-payable agent reconciles staff parking against company-card statements by querying /sessions/search by plate, then files reimbursements through the agent's own ledger.
City planning analytics
A research agent queries /api/v2/intelligence/market-rate and /api/v2/intelligence/agent-demand for an address corridor, then drafts a report on rate elasticity and AI-agent traffic.
Architecture
Every Park Graph request — whether it arrives from the Gemini integration, the dashboard, the QR-driven mobile checkout, or an agent — runs through the same Next.js Edge front door, hits the same Postgres-backed core, and shares the same audit log and webhook fan-out. There is no divergent code path between "agent traffic" and "human traffic": anything an agent can do, a human can do, and vice versa.
Sandbox & getting help
Every operator gets a sandbox key prefixed with pk_test_. Sandbox traffic uses Stripe test mode, synthetic lots, and never charges a real card. Spin one up at /developers/sandbox, then point your client at https://parkgraph.com/api/v1 exactly as you would in production.
For integration help, reach the developer team at developers@parkgraph.com or open an issue on the public GitHub org. Status and incident history live at /developers/changelog; subscribe to the JSON feed for machine-readable updates.