Skip to content

MCP tools

The MCP server exposes 33 tools across listings, seller profiles, organizations, engagement/analytics, buyer accounts, media, and metadata. Each tool validates its input with the shared Zod schema (<Schema>.shape) and enforces a scope before running.

Scopes: listings:read (every authenticated user) · listings:write (dealers) · listings:moderate (platform staff — granted explicitly, not a default). Over stdio the local principal holds all scopes; over HTTP scopes come from the OAuth token. See Architecture and Data models.

Registered in apps/mcp-server/src/tools/register*.ts.

Listings — registerTools.ts

ToolPurposeScope
search_vehiclesSearch/filter with facets, sort, paginationlistings:read
get_vehicleFetch one listing by id or VINlistings:read
create_listingPublish a new listing (owned by caller)listings:write
update_listingModify a caller-owned listing (idempotent)listings:write
delete_listingSoft-delete a listinglistings:write
bulk_create_listingsCreate up to 50 listings in one calllistings:write
bulk_delete_listingsDelete up to 50 listings in one calllistings:write
moderate_listingSet moderation status (approved/pending/rejected)listings:moderate
restore_listingRestore a soft-deleted listinglistings:moderate
list_moderation_queueList hidden/deleted listings for reviewlistings:moderate
list_audit_logRead the append-only write traillistings:moderate

Seller profile & locations — registerSellerTools.ts

ToolPurposeScope
get_my_profileFetch your profile + locations (auto-provisions)listings:read
update_my_profileCreate/update your storefront profilelistings:write
add_locationAdd a branch/locationlistings:write
update_locationUpdate a locationlistings:write
remove_locationRemove a locationlistings:write

Organizations — registerOrganizationTools.ts

ToolPurposeScope
create_organizationCreate an org (caller becomes owner)listings:write
update_organizationUpdate an org you ownlistings:write
list_my_organizationsList orgs you belong to + your rolelistings:read
get_organizationPublic org page by id or sluglistings:read
list_organization_membersList members of your orglistings:read
add_organization_memberAdd a member by Keycloak subjectlistings:write
remove_organization_memberRemove a member (self-leave or owner)listings:write

Engagement & analytics — registerEngagementTools.ts

ToolPurposeScope
get_price_ratingFair-price rating vs. comparableslistings:read
get_similar_vehiclesRecommend similar listingslistings:read
compare_vehiclesFetch 2–5 listings side-by-sidelistings:read
list_seller_reviewsSeller's approved reviews + aggregatelistings:read
review_sellerLeave/update a 1–5 star seller reviewlistings:read
moderate_reviewSet review moderation statuslistings:moderate

Buyer account — registerAccountTools.ts

ToolPurposeScope
search_vehicles_nlNatural-language searchlistings:read
list_favoritesFetch your watchlistlistings:read
add_favoriteAdd to watchlist (idempotent)listings:read
remove_favoriteRemove from watchlist (idempotent)listings:read
list_saved_searchesYour saved searches + alert settingslistings:read
save_searchSave a search (optionally with alerts)listings:read
delete_saved_searchDelete a saved searchlistings:read
get_accountBuyer profile + notification prefslistings:read
update_accountUpdate buyer profile + notification prefslistings:read

Media — registerMediaTools.ts

ToolPurposeScope
request_uploadGet an HMAC-signed browser upload linklistings:write
upload_mediaUpload a base64 image/video, returns a URLlistings:write

Metadata — registerMetaTools.ts

ToolPurposeScope
get_versionServer name + versionpublic

A-Market — AI-first marketplace for cars, motorcycles and scooters.