Discogs ACTION
Create Marketplace Listing
Creates a new listing in the Discogs marketplace. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Discogs account once, then configure and run Create Marketplace Listing from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "discogs-create-marketplace-listing",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
discogs: { authProvisionId: "apn_xxxxxxx" },
releaseId: 10,
condition: "Condition",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "discogs-create-marketplace-listing",
"configured_props": {
"discogs": { "authProvisionId": "apn_xxxxxxx" },
"releaseId": 10,
"condition": "Condition"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "discogs",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "discogs-create-marketplace-listing",
arguments: {
releaseId: 10,
condition: "Condition",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
releaseId Release ID | integer | The ID of the release you are listing for sale. Required |
condition Condition | string | Select the condition of the item. Required |
sleeveCondition Sleeve Condition | string | Select the condition of the sleeve. Optional |
price Price | string | The price of the item (in the seller's currency). Format 00.00 Required |
comments Comments | string | Any remarks about the item that will be displayed to buyers. Optional |
allowOffers Allow Offers | boolean | Whether or not to allow buyers to make offers on the item. Required |
status Listing Status | string | The status of the listing. Required |
externalId External ID | string | A freeform field that can be used for the seller’s own reference. Information stored here will not be displayed to anyone other than the seller. This field is called “Private Comments” on the Discogs website. Optional |
location Location | string | A freeform field that is intended to help identify an item’s physical storage location. Information stored here will not be displayed to anyone other than the seller. This field will be visible on the inventory management page and will be available in inventory exports via the website. Optional |
weight Weight | string | The weight, in grams, of this listing, for the purpose of calculating shipping. Set this field to auto to have the weight automatically estimated for you. Format 00.00 Optional |
formatQuantity Format Quantity | string | The number of items this listing counts as, for the purpose of calculating shipping. This field is called "Counts As" on the Discogs website. Format 00.00 Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- discogs-create-marketplace-listing
- Version
- 0.0.2
- App
- Discogs
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗