Skip to main content
Glama

get_listing_inventory

Read-only

Retrieves the inventory record for a listing you own, including product offerings and optional deleted items, to inspect stock data.

Instructions

Retrieves the inventory record for a listing. Listings you did not edit using the Etsy.com inventory tools have no inventory records. Only the owner of the listing may retrieve its inventory record.

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": {
      "listing_id": "<listing_id>"
    },
    "name": "get_listing_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
includesNoAn enumerated string that attaches a valid association. Default value is null.
listing_idYesThe numeric ID for the [listing](/documentation/reference#tag/ShopListing) associated to this transaction.
show_deletedNoA boolean value for inventory whether to include deleted products and their offerings. Default value is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful context about ownership restrictions and the fact that unedited listings have no inventory record, but says nothing about how absence is signalled (error vs. empty response).

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

Conciseness2/5

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

Two-thirds of the text is HTML boilerplate – badge markup, a report-bug link, and a release-status banner – that carries no meaning for tool selection. The substantive content is buried after this noise rather than front-loaded.

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

Completeness3/5

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

For a read-only fetch with no output schema, the definition should at least gesture at what the inventory record contains and how missing records surface. The ownership and record-existence caveats help, but the return behavior remains unspecified.

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 description coverage is 100%, so listing_id, includes, and show_deleted are fully documented in the schema itself. The description adds no additional parameter meaning, which is acceptable given the baseline.

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: 'Retrieves the inventory record for a listing.' An agent can tell this is a single-listing inventory read, though it doesn't explicitly distinguish itself from the bulk sibling get_listings_inventory_by_listing_ids.

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?

Provides real preconditions – only listings edited with Etsy.com inventory tools have records, and only the listing owner can retrieve them. It never states when to prefer this over the bulk variant or what to do when no record exists.

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