iflow-mcp_cupofowls-kroger-mcp

v0.2.0
iflow-mcp_cupofowls-kroger-mcp Checked 4 days ago Published 9 months ago

FastMCP server for Kroger API integration

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_locations Search Locations

Search for Kroger store locations near a zip code.

ParameterTypeDescription
chainFilter by specific chain name
limitintegerNumber of results to return (1-200)
radius_in_milesintegerSearch radius in miles (1-100)
zip_codeZip code to search near (uses environment default if not provided)

get_user_zip_code Get User Zip Code

Returns user zip code, it is anticipated that by exposing this to the LLM it will choose to use it rather than generating a zip code based on system data. Args: N/A Returns: Dictionary containing user Zip Code

get_location_details Get Location Details

Get detailed information about a specific Kroger store location.

ParameterTypeDescription
location_id *stringThe unique identifier for the store location

set_preferred_location Set Preferred Location

Set a preferred store location for future operations.

ParameterTypeDescription
location_id *stringThe unique identifier for the store location

get_preferred_location Get Preferred Location

Get the currently set preferred store location.

check_location_exists Check Location Exists

Check if a location exists in the Kroger system.

ParameterTypeDescription
location_id *stringThe unique identifier for the store location

get_product_images Get Product Images

Get an image for a specific product from the requested perspective. Use get_product_details first to see what perspectives are available (typically "front", "back", "left", "right").

ParameterTypeDescription
product_id *stringThe unique product identifier
location_idStore location ID (uses preferred if not provided)
perspectivestringThe image perspective to retrieve (default: "front")

search_products Search Products

Search for products at a Kroger store.

ParameterTypeDescription
search_term *stringProduct search term (e.g., "milk", "bread", "organic apples")
brandFilter by brand name
fulfillmentFilter by fulfillment method (csp=curbside pickup, delivery, pickup)
limitintegerNumber of results to return (1-50)
location_idStore location ID (uses preferred location if not provided)

get_product_details Get Product Details

Get detailed information about a specific product.

ParameterTypeDescription
product_id *stringThe unique product identifier
location_idStore location ID for pricing/availability (uses preferred if not provided)

search_products_by_id Search Products By Id

Search for products by their specific product ID.

ParameterTypeDescription
product_id *stringThe product ID to search for
location_idStore location ID (uses preferred location if not provided)

add_items_to_cart Add Items To Cart

Add a single item to the user's Kroger cart and track it locally. If the user doesn't specifically indicate a preference for pickup or delivery, you should ask them which modality they prefer before calling this tool.

ParameterTypeDescription
product_id *stringThe product ID or UPC to add to cart
modalitystringFulfillment method - PICKUP or DELIVERY
quantityintegerQuantity to add (default: 1)

bulk_add_to_cart Bulk Add To Cart

Add multiple items to the user's Kroger cart in a single operation. If the user doesn't specifically indicate a preference for pickup or delivery, you should ask them which modality they prefer before calling this tool.

ParameterTypeDescription
items *arrayList of items to add. Each item should have: - product_id: The product ID or UPC - quantity: Quantity to add (default: 1) - modality: PICKUP or DELIVERY (default: PICKUP)

view_current_cart View Current Cart

View the current cart contents tracked locally. Note: This tool can only see items that were added via this MCP server. The Kroger API does not provide permission to query the actual user cart contents.

remove_from_cart Remove From Cart

Remove an item from the local cart tracking only. IMPORTANT: This tool CANNOT remove items from the actual Kroger cart in the app/website. It only updates our local tracking to stay in sync. The user must remove the item from their actual cart through the Kroger app or website themselves. Use this tool only when: 1. The user has already removed an item from their Kroger cart through the app/website 2. You need to update the local tracking to reflect that change

ParameterTypeDescription
product_id *stringThe product ID to remove
modalitystringSpecific modality to remove (if None, removes all instances)

clear_current_cart Clear Current Cart

Clear all items from the local cart tracking only. IMPORTANT: This tool CANNOT remove items from the actual Kroger cart in the app/website. It only clears our local tracking. The user must remove items from their actual cart through the Kroger app or website themselves. Use this tool only when: 1. The user has already cleared their Kroger cart through the app/website 2. You need to update the local tracking to reflect that change 3. Or when the local tracking is out of sync with the actual cart

mark_order_placed Mark Order Placed

Mark the current cart as an order that has been placed and move it to order history. Use this after you've completed checkout on the Kroger website/app.

ParameterTypeDescription
order_notesstringOptional notes about the order

view_order_history View Order History

View the history of placed orders. Note: This tool can only see orders that were explicitly marked as placed via this MCP server. The Kroger API does not provide permission to query the actual order history from Kroger's systems.

ParameterTypeDescription
limitintegerNumber of recent orders to show (1-50)

list_chains List Chains

Get a list of all Kroger-owned chains.

get_chain_details Get Chain Details

Get detailed information about a specific Kroger chain.

ParameterTypeDescription
chain_name *stringName of the chain to get details for

check_chain_exists Check Chain Exists

Check if a chain exists in the Kroger system.

ParameterTypeDescription
chain_name *stringName of the chain to check

list_departments List Departments

Get a list of all available departments in Kroger stores.

get_department_details Get Department Details

Get detailed information about a specific department.

ParameterTypeDescription
department_id *stringThe unique identifier for the department

check_department_exists Check Department Exists

Check if a department exists in the Kroger system.

ParameterTypeDescription
department_id *stringThe department ID to check

get_user_profile Get User Profile

Get the authenticated user's Kroger profile information.

test_authentication Test Authentication

Test if the current authentication token is valid.

get_authentication_info Get Authentication Info

Get information about the current authentication state and token.

force_reauthenticate Force Reauthenticate

Force re-authentication by clearing the current authentication token. Use this if you're having authentication issues or need to log in as a different user.

get_current_datetime Get Current Datetime

Get the current system date and time. This tool is useful for comparing with cart checkout dates, order history, or any other time-sensitive operations.

start_authentication Start Authentication

Start the OAuth authentication flow with Kroger. This tool returns a URL that the user needs to open in their browser to authenticate with Kroger. After authorization, the user will be redirected to a callback URL that they need to copy and paste back.

complete_authentication Complete Authentication

Complete the OAuth flow using the redirect URL from Kroger. After opening the auth URL in your browser and authorizing the app, you'll be redirected to a callback URL. Copy that entire URL and pass it to this tool to complete the authentication process.

ParameterTypeDescription
redirect_url *stringThe full URL from your browser after authorization