Skip to main content
Glama

get_listing_details

Read-onlyIdempotent

Retrieve full details for one secondhand marketplace listing by ID or URL, including description, photos, seller, location, shipping, and eBay option prices.

Instructions

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.

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": {
      "listingId": "<listingId>"
    },
    "name": "get_listing_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoeBay only. For a listing sold in several options (sizes, colours): the shopper's choice, by the option names the listing shows, any listed value matching, e.g. {"Size": ["L"]} or {"Color": ["Navy"], "Size": ["M", "L"]}. Returns the matching options with their prices. Without it, a few options are shown.
imageModeNoHow photos are returned. "urls" (default): direct full-resolution CDN image URLs for you to fetch yourself — most reliable, bypasses CDN blocking of server-side fetches, defaults to full resolution. "inline": server fetches every photo and returns them as base64 image blocks in this one call; if the server fetch is blocked it automatically falls back to returning the URLs.urls
imageSizeNoResolution for eBay images: thumb (~400px), standard (~800px), full (~1600px). Defaults to full for imageMode "urls" and standard for "inline". Non-eBay images are returned as-is.
listingIdYesThe listing ID (from search results or a marketplace URL), sent as text. eBay also takes a listing link or a Share link (ebay.us, ebay.io).
maxImagesNoCap the number of photos returned (default: all). Use to keep the response small for listings with many photos.
marketplaceNoWhich marketplace the listing is from (default: facebook). Can be left out for an eBay link or an id prefixed like "ebay:123".facebook
includeImagesNoDeprecated alias for imageMode:"inline". If true and imageMode is unset, photos are fetched server-side and returned inline as base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.8.0
    • changedInput schema / properties / listingId / description
      Previous value: -"The listing ID (from search results or a marketplace URL)"New value: +"The listing ID (from search results or a marketplace URL), sent as text. eBay also takes a listing link or a Share link (ebay.us, ebay.io)."
    • changedInput schema / properties / marketplace / description
      Previous value: -"Which marketplace the listing is from (default: facebook)"New value: +"Which marketplace the listing is from (default: facebook). Can be left out for an eBay link or an id prefixed like \"ebay:123\"."
    • addedInput schema / properties / options
      Added value: +{
      +  "additionalProperties": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "description": "eBay only. For a listing sold in several options (sizes, colours): the shopper's choice, by the option names the listing shows, any listed value matching, e.g. {\"Size\": [\"L\"]} or {\"Color\": [\"Navy\"], \"Size\": [\"M\", \"L\"]}. Returns the matching options with their prices. Without it, a few options are shown.",
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv0.7.1
    • addedInput schema / properties / imageMode
      Added value: +{
      +  "default": "urls",
      +  "description": "How photos are returned. \"urls\" (default): direct full-resolution CDN image URLs for you to fetch yourself — most reliable, bypasses CDN blocking of server-side fetches, defaults to full resolution. \"inline\": server fetches every photo and returns them as base64 image blocks in this one call; if the server fetch is blocked it automatically falls back to returning the URLs.",
      +  "enum": [
      +    "urls",
      +    "inline"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / imageSize
      Added value: +{
      +  "description": "Resolution for eBay images: thumb (~400px), standard (~800px), full (~1600px). Defaults to full for imageMode \"urls\" and standard for \"inline\". Non-eBay images are returned as-is.",
      +  "enum": [
      +    "thumb",
      +    "standard",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / includeImages / description
      Previous value: -"Return actual image content instead of URLs. Images are returned as base64-encoded content blocks that the model can see."New value: +"Deprecated alias for imageMode:\"inline\". If true and imageMode is unset, photos are fetched server-side and returned inline as base64."
    • addedInput schema / properties / maxImages
      Added value: +{
      +  "description": "Cap the number of photos returned (default: all). Use to keep the response small for listings with many photos.",
      +  "type": "number"
      +}
  3. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description still adds real context beyond them: no login required, one listing per call, the inline-to-URL fallback when a server-side fetch is blocked, and the explicit failure contract (removed listing or wrong-marketplace id returns an error rather than a partial listing). Return-payload specifics (field-by-field shape) are not spelled out and there is no output schema, which keeps it short of 5.

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 purpose and return contents, then photos, then requirements/behavior/errors/not-for in a scannable order. It is dense and mostly earns its length, but the imageMode explanation duplicates the schema description almost verbatim, so there is some redundancy.

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

Completeness5/5

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

For a 7-parameter, nested-object read tool with no output schema, the description covers what is returned, how photos vary by mode, prerequisites, failure modes and sibling boundaries. Nothing an agent needs in order to call it correctly 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% and the schema already documents options, imageMode, imageSize, maxImages, marketplace and the deprecated includeImages alias in detail. The description largely restates imageMode/imageSize/maxImages behavior that the schema carries, adding only the rationale that URL mode is more reliable due to CDN blocking. Baseline 3 is appropriate 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.

Purpose5/5

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

Opens with a specific verb and resource ("Get one listing in full") and enumerates exactly what comes back: description, every photo, location, seller and shipping options. It also covers the multi-variant eBay case and explicitly names the sibling it is not (search_marketplace), so an agent can distinguish it without opening a schema.

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

Usage Guidelines5/5

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

Gives the positive entry condition (an id from search_marketplace or a marketplace URL) and a dedicated "Not for" clause that routes searching and bulk fetching to search_marketplace. The imageMode guidance also states which mode to prefer and why (CDN blocking of server-side fetches), which is actionable selection guidance.

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