Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MARKETPLACESNoComma-separated list of marketplaces to enable (facebook, ebay, depop, poshmark). Defaults to all if not set.
EBAY_CLIENT_IDNoYour eBay Client ID for the Browse API. Optional; if missing, eBay marketplace is disabled.
EBAY_CLIENT_SECRETNoYour eBay Client Secret for the Browse API. Optional; if missing, eBay marketplace is disabled.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Secondhand MCP searches live listings on Facebook Marketplace, eBay, Depop and Poshmark.

Locations: Facebook Marketplace searches are local, so pass a US city and state as "City, ST" — for example "Austin, TX" or "Portland, OR". Do not pass a bare city name: there are 20 Springfields and several Portlands, and the wrong one returns listings from the wrong state. Before calling, translate whatever the user said into a city and state:

  • "near me" or "around here" — use the location they gave you earlier in the conversation; ask if you do not have one.

  • a neighborhood, borough or landmark ("Capitol Hill", "the Mission") — use its city and state.

  • a ZIP code — use the city and state it belongs to.

  • a metro area ("the Bay Area", "DFW") — pick its principal city.

  • somewhere outside the US — pass the city and country as written; those resolve differently.

Empty results usually mean the search was too narrow, not that nothing exists. Before telling the user there is nothing available, try the obvious widening: drop qualifiers from the query down to the item itself, remove price bounds, or search the nearest larger city. Say which of these you tried.

Filters are not universal — each parameter says which marketplaces apply it. Where one does not apply it is ignored, so do not describe results as filtered by something that marketplace never applied; put those words in the query instead.

Always link every listing you mention, without the user asking. The link is how they open photos, check the seller, and buy — a listing shown without its link is a dead end. Use the listing title as the link text, and keep each link with its item rather than collecting links at the end.

Results are read-only. Nothing here can message a seller, make an offer, or buy anything, so do not tell the user an item has been purchased or reserved.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_marketplaceA

Search live listings on secondhand marketplaces by keyword. Marketplaces: . Returns up to limit listings with id, title, price, location, seller and a thumbnail; call get_listing_details with an id for the description, every photo and shipping. Requirements: Facebook Marketplace needs no credentials but is local, so pass location as "City, ST"; eBay needs EBAY_CLIENT_ID and EBAY_CLIENT_SECRET in the server environment; Depop needs Chrome or Chromium on the machine; SidelineSwap (used sporting gear), Play It Again Sports (sporting goods store inventory) and Geartrade (used outdoor gear) are opt-in and run only when named in MARKETPLACES. Behavior: read-only, no login, no purchases. Facebook may rate-limit repeated searches from one IP, and results for a query are cached for 90 seconds. Errors: a marketplace that fails returns success:false with the reason instead of throwing; an unknown marketplace name lists the valid ones; an empty result usually means the query was too specific, so widen the keywords or drop a price bound before concluding nothing exists. Not for: buying, messaging sellers, saved searches, or new-retail catalogs.

get_listing_detailsA

Get one listing in full using an id from search_marketplace or from a marketplace URL: description, every photo, location, seller and shipping options. An eBay listing sold in several options also lists what they differ by, their price range and a few options with their own price and link. Photos: by default (imageMode:"urls") you get direct full-resolution CDN image URLs to fetch yourself, which is the most reliable option because some CDNs block server-side fetches. Set imageMode:"inline" (or includeImages:true) to have the server fetch the photos and return them as base64 image blocks; if that fetch is blocked the server falls back to URLs. Use imageSize to trade resolution for payload and maxImages to cap the count. Requirements: the same as search_marketplace for that marketplace. Behavior: read-only, one listing per call, no login. Errors: a listing that has been removed, or an id from the wrong marketplace, returns an error message rather than a partial listing. Not for: searching (use search_marketplace) or fetching many listings at once.

list_marketplacesA

List the marketplaces this server can search right now, with each one's display name, whether it needs credentials, and whether it is currently reachable. Call it once when a search fails with an unknown-marketplace error or before offering a marketplace the user did not name. Behavior: read-only, no arguments, no network calls beyond a health check. Not for: searching or fetching listings.

searchA

Search every available secondhand marketplace at once with a single query string, following the ChatGPT deep research tool contract. Returns results whose ids (marketplace:listingId) can be passed to the fetch tool. Behavior: read-only; Facebook results use the server's default location because this contract carries no location, so prefer search_marketplace when a place matters. Not for: filtered or local searches.

fetchA

Fetch one listing in full for an id returned by the search tool, following the ChatGPT deep research tool contract. Id format: marketplace:listingId (for example "facebook:12345" or "ebay:v1|123|456"). Behavior: read-only. Errors: an id without the marketplace prefix, or for a removed listing, returns an error message. Not for: ids from search_marketplace, which take get_listing_details.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 5 tools

Disambiguation3/5

The set contains two intentional pairs of overlapping tools: search_marketplace vs. search, and get_listing_details vs. fetch. Descriptions explain the distinction via different contracts and id formats, which helps, but an agent can still easily choose the wrong search/fetch variant.

Naming Consistency3/5

Three tools follow a clear verb_noun snake_case pattern (search_marketplace, list_marketplaces, get_listing_details), while two are bare verbs (search, fetch). The mixed convention is still readable, but it is inconsistent across the set.

Tool Count5/5

Five tools is well-scoped for a read-only secondhand marketplace browsing server. Each tool corresponds to a meaningful capability: discovery, marketplace availability, search, and listing detail retrieval.

Completeness4/5

The surface covers the core read-only workflow: list marketplaces, search listings, and retrieve full listing details with photos and shipping. Buying, messaging, saved searches, and seller-contact operations are explicitly out of scope, so there are no major dead ends for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessUsually handled