Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

Facebook Marketplace Search

facebook_marketplace_search

Search Facebook Marketplace by keyword and city, applying filters for price, condition, category, radius, delivery, and sort order; supports pagination and optional cached results.

Instructions

Search Marketplace by keyword + city — filters, isLocal/shipsOutsideRadius, opaque cursor (2 credits). Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "q": "<q>",
      "searchLocation": "<searchLocation>"
    },
    "name": "facebook_marketplace_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesProduct or keyword to search Facebook Marketplace for.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
limitNoHow many listings to return (1–200). Flat 2 credits when details=false; details=true billed as 2 + 2 per listing.
cursorNoOpaque pagination cursor from a previous nextCursor. A cursor this endpoint did not issue is 400 INVALID_CURSOR.
sortByNosuggested | distance | creation_time | price_ascend | price_descend.
detailsNoWhen true, adds description/condition/coordinates/full photo gallery/seller/distanceMiles — billed as 2 + 2 credits per enriched listing (listings the 90s deadline did not reach ship as search cards with truncatedReason=enrich_deadline and are not billed the extra 2). Default false → flat 2 credits; cover photo is still in image.
categoryNoTop-level category slug, e.g. electronics.
locationNoAlias of searchLocation. Prefer searchLocation. Either one is required.
maxPriceNoMaximum price in local currency units.
minPriceNoMinimum price in local currency units.
conditionNonew, like_new, good, fair (comma-separated ok).
radiusMilesNoRadius in miles: 1,2,5,10,20,40,60,80,100,250,500. Does not exclude nationwide shipped inventory.
availabilityNoavailable | sold | all.
deliveryMethodNolocal_pickup | shipping | all. Shipped listings can appear nationwide outside radiusMiles — use local_pickup for nearby-only; rows expose isLocal / shipsOutsideRadius.
searchLocationYesSearch-origin city or place name, e.g. 'Austin, TX'. Required — there is no default city. Echoed on the envelope and inside filters. Not listings[].location. Names that don't resolve to a real place are a definitive 400 UNKNOWN_LOCATION (Facebook would otherwise silently search an unrelated metro) — /v1/facebook/marketplace-location-search finds valid ones.
daysSinceListedNoFacebook calendar-day recency: 1 = since the start of yesterday (not a rolling 24 hours), 7, or 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does real work: it discloses the 2-credit price, that empty results and failures are never charged, and the cache-hit billing exception. It also explains that rows expose isLocal / shipsOutsideRadius, which is behavioral context not stated elsewhere. Auth requirements and rate limits remain undocumented.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core operation and kept short, with no filler sentences. Cost is mentioned twice ('opaque cursor (2 credits). Costs 2 credits.'), a minor redundancy that keeps it just below top marks.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter search tool with no annotations and no output schema, the description supplies the pricing model, cache semantics, and geographic-scope caveats an agent needs to call it correctly. It could say more about the response envelope or pagination limits, but nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents every parameter in depth. The description only adds two marginal points — that the cursor is opaque (per-page cost) and the cache default — both of which the schema also states. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource plus the two required dimensions: 'Search Marketplace by keyword + city'. That lets an agent separate it from item-detail or location-search siblings on its own terms without opening a schema. It stops short of naming an alternative tool, which keeps it out of 5 territory.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Guidance is present but operational rather than comparative: the description tells you to pass cache=true for a free hit and notes the default is fresh, which shapes how the call is made. It never says when this tool is the right choice versus facebook_marketplace_item or facebook_marketplace_location_search, nor when to avoid it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools