ebay-mcp 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +586 -0
- package/build/api/account-management/account.d.ts +216 -0
- package/build/api/account-management/account.js +305 -0
- package/build/api/analytics-and-report/analytics.d.ts +33 -0
- package/build/api/analytics-and-report/analytics.js +102 -0
- package/build/api/client.d.ts +89 -0
- package/build/api/client.js +343 -0
- package/build/api/communication/feedback.d.ts +45 -0
- package/build/api/communication/feedback.js +119 -0
- package/build/api/communication/message.d.ts +55 -0
- package/build/api/communication/message.js +131 -0
- package/build/api/communication/negotiation.d.ts +39 -0
- package/build/api/communication/negotiation.js +97 -0
- package/build/api/communication/notification.d.ts +128 -0
- package/build/api/communication/notification.js +373 -0
- package/build/api/index.d.ts +96 -0
- package/build/api/index.js +121 -0
- package/build/api/listing-management/inventory.d.ts +216 -0
- package/build/api/listing-management/inventory.js +633 -0
- package/build/api/listing-metadata/metadata.d.ts +154 -0
- package/build/api/listing-metadata/metadata.js +485 -0
- package/build/api/listing-metadata/taxonomy.d.ts +38 -0
- package/build/api/listing-metadata/taxonomy.js +58 -0
- package/build/api/marketing-and-promotions/marketing.d.ts +395 -0
- package/build/api/marketing-and-promotions/marketing.js +565 -0
- package/build/api/marketing-and-promotions/recommendation.d.ts +20 -0
- package/build/api/marketing-and-promotions/recommendation.js +32 -0
- package/build/api/order-management/dispute.d.ts +65 -0
- package/build/api/order-management/dispute.js +69 -0
- package/build/api/order-management/fulfillment.d.ts +80 -0
- package/build/api/order-management/fulfillment.js +89 -0
- package/build/api/other/compliance.d.ts +26 -0
- package/build/api/other/compliance.js +47 -0
- package/build/api/other/edelivery.d.ts +153 -0
- package/build/api/other/edelivery.js +219 -0
- package/build/api/other/identity.d.ts +17 -0
- package/build/api/other/identity.js +24 -0
- package/build/api/other/translation.d.ts +14 -0
- package/build/api/other/translation.js +22 -0
- package/build/api/other/vero.d.ts +30 -0
- package/build/api/other/vero.js +48 -0
- package/build/auth/oauth-metadata.d.ts +46 -0
- package/build/auth/oauth-metadata.js +59 -0
- package/build/auth/oauth-middleware.d.ts +35 -0
- package/build/auth/oauth-middleware.js +99 -0
- package/build/auth/oauth-types.d.ts +66 -0
- package/build/auth/oauth-types.js +4 -0
- package/build/auth/oauth.d.ts +93 -0
- package/build/auth/oauth.js +383 -0
- package/build/auth/scope-utils.d.ts +70 -0
- package/build/auth/scope-utils.js +304 -0
- package/build/auth/token-verifier.d.ts +57 -0
- package/build/auth/token-verifier.js +172 -0
- package/build/config/environment.d.ts +61 -0
- package/build/config/environment.js +260 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +98 -0
- package/build/schemas/account-management/account.d.ts +5324 -0
- package/build/schemas/account-management/account.js +366 -0
- package/build/schemas/analytics/analytics.d.ts +167 -0
- package/build/schemas/analytics/analytics.js +191 -0
- package/build/schemas/communication/messages.d.ts +1872 -0
- package/build/schemas/communication/messages.js +348 -0
- package/build/schemas/fulfillment/orders.d.ts +4655 -0
- package/build/schemas/fulfillment/orders.js +317 -0
- package/build/schemas/index.d.ts +2100 -0
- package/build/schemas/index.js +68 -0
- package/build/schemas/inventory-management/inventory.d.ts +6419 -0
- package/build/schemas/inventory-management/inventory.js +450 -0
- package/build/schemas/marketing/marketing.d.ts +14181 -0
- package/build/schemas/marketing/marketing.js +1088 -0
- package/build/schemas/metadata/metadata.d.ts +5259 -0
- package/build/schemas/metadata/metadata.js +614 -0
- package/build/schemas/other/other-apis.d.ts +257 -0
- package/build/schemas/other/other-apis.js +372 -0
- package/build/schemas/taxonomy/taxonomy.d.ts +215 -0
- package/build/schemas/taxonomy/taxonomy.js +571 -0
- package/build/scripts/auto-setup.d.ts +12 -0
- package/build/scripts/auto-setup.js +277 -0
- package/build/scripts/diagnostics.d.ts +8 -0
- package/build/scripts/diagnostics.js +299 -0
- package/build/scripts/download-specs.d.ts +1 -0
- package/build/scripts/download-specs.js +116 -0
- package/build/scripts/interactive-setup.d.ts +21 -0
- package/build/scripts/interactive-setup.js +723 -0
- package/build/server-http.d.ts +11 -0
- package/build/server-http.js +361 -0
- package/build/tools/definitions/account-with-schemas.d.ts +39 -0
- package/build/tools/definitions/account-with-schemas.js +170 -0
- package/build/tools/definitions/account.d.ts +12 -0
- package/build/tools/definitions/account.js +428 -0
- package/build/tools/definitions/analytics.d.ts +25 -0
- package/build/tools/definitions/analytics.js +66 -0
- package/build/tools/definitions/communication.d.ts +12 -0
- package/build/tools/definitions/communication.js +151 -0
- package/build/tools/definitions/fulfillment.d.ts +12 -0
- package/build/tools/definitions/fulfillment.js +326 -0
- package/build/tools/definitions/index.d.ts +25 -0
- package/build/tools/definitions/index.js +37 -0
- package/build/tools/definitions/inventory.d.ts +12 -0
- package/build/tools/definitions/inventory.js +429 -0
- package/build/tools/definitions/marketing.d.ts +12 -0
- package/build/tools/definitions/marketing.js +1095 -0
- package/build/tools/definitions/metadata.d.ts +12 -0
- package/build/tools/definitions/metadata.js +188 -0
- package/build/tools/definitions/other.d.ts +13 -0
- package/build/tools/definitions/other.js +309 -0
- package/build/tools/definitions/taxonomy.d.ts +25 -0
- package/build/tools/definitions/taxonomy.js +64 -0
- package/build/tools/definitions/token-management.d.ts +35 -0
- package/build/tools/definitions/token-management.js +103 -0
- package/build/tools/index.d.ts +11 -0
- package/build/tools/index.js +1003 -0
- package/build/tools/schemas.d.ts +14764 -0
- package/build/tools/schemas.js +667 -0
- package/build/tools/tool-definitions.d.ts +35 -0
- package/build/tools/tool-definitions.js +3534 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.d.ts +197 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.js +5 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.d.ts +155 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.js +5 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.d.ts +246 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.js +5 -0
- package/build/types/ebay-enums.d.ts +1204 -0
- package/build/types/ebay-enums.js +1330 -0
- package/build/types/ebay.d.ts +143 -0
- package/build/types/ebay.js +123 -0
- package/build/types/index.d.ts +6 -0
- package/build/types/index.js +10 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.d.ts +2579 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.js +5 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.d.ts +446 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.d.ts +705 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.js +5 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.d.ts +590 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.d.ts +1276 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.d.ts +277 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.d.ts +3133 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.d.ts +2289 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.js +5 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.d.ts +1869 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.d.ts +178 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.d.ts +128 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.d.ts +417 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.d.ts +273 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.d.ts +2537 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.js +5 -0
- package/build/utils/account-management/account.d.ts +1094 -0
- package/build/utils/account-management/account.js +831 -0
- package/build/utils/communication/feedback.d.ts +152 -0
- package/build/utils/communication/feedback.js +216 -0
- package/build/utils/communication/message.d.ts +174 -0
- package/build/utils/communication/message.js +242 -0
- package/build/utils/communication/negotiation.d.ts +123 -0
- package/build/utils/communication/negotiation.js +150 -0
- package/build/utils/communication/notification.d.ts +370 -0
- package/build/utils/communication/notification.js +369 -0
- package/build/utils/date-converter.d.ts +59 -0
- package/build/utils/date-converter.js +160 -0
- package/build/utils/llm-client-detector.d.ts +54 -0
- package/build/utils/llm-client-detector.js +318 -0
- package/build/utils/oauth-helper.d.ts +37 -0
- package/build/utils/oauth-helper.js +315 -0
- package/build/utils/order-management/dispute.d.ts +346 -0
- package/build/utils/order-management/dispute.js +369 -0
- package/build/utils/order-management/fulfillment.d.ts +200 -0
- package/build/utils/order-management/fulfillment.js +205 -0
- package/build/utils/other/compliance.d.ts +49 -0
- package/build/utils/other/compliance.js +76 -0
- package/build/utils/other/edelivery.d.ts +310 -0
- package/build/utils/other/edelivery.js +241 -0
- package/build/utils/other/identity.d.ts +13 -0
- package/build/utils/other/identity.js +13 -0
- package/build/utils/other/translation.d.ts +28 -0
- package/build/utils/other/translation.js +41 -0
- package/build/utils/other/vero.d.ts +61 -0
- package/build/utils/other/vero.js +90 -0
- package/build/utils/scope-helper.d.ts +49 -0
- package/build/utils/scope-helper.js +207 -0
- package/build/utils/security-checker.d.ts +46 -0
- package/build/utils/security-checker.js +248 -0
- package/build/utils/setup-validator.d.ts +25 -0
- package/build/utils/setup-validator.js +305 -0
- package/build/utils/token-utils.d.ts +40 -0
- package/build/utils/token-utils.js +40 -0
- package/package.json +115 -0
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { MarketplaceId } from '../../types/ebay-enums.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
4
|
+
import { bulkInventoryItemRequestSchema, bulkMigrateRequestSchema, bulkOfferRequestSchema, bulkPriceQuantityRequestSchema, bulkPublishRequestSchema, inventoryItemGroupSchema, inventoryItemSchema, listingFeesRequestSchema, locationSchema, offerSchema, productCompatibilitySchema, } from '../schemas.js';
|
|
5
|
+
import { getInventoryItemsOutputSchema, getInventoryItemOutputSchema, createInventoryItemOutputSchema, getOffersOutputSchema, createOfferOutputSchema, publishOfferOutputSchema, offerResponseSchema, getInventoryLocationsOutputSchema, createInventoryLocationOutputSchema, getProductCompatibilityOutputSchema, getInventoryItemGroupOutputSchema, bulkInventoryItemResponseSchema, bulkOfferResponseSchema, bulkPublishResponseSchema, } from '../../schemas/inventory-management/inventory.js';
|
|
6
|
+
export const inventoryTools = [
|
|
7
|
+
{
|
|
8
|
+
name: 'ebay_get_inventory_items',
|
|
9
|
+
description: 'Retrieve all inventory items for the seller.\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
limit: z.number().optional().describe('Number of items to return (max 100)'),
|
|
12
|
+
offset: z.number().optional().describe('Number of items to skip'),
|
|
13
|
+
},
|
|
14
|
+
outputSchema: zodToJsonSchema(getInventoryItemsOutputSchema, {
|
|
15
|
+
name: 'GetInventoryItemsResponse',
|
|
16
|
+
$refStrategy: 'none',
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'ebay_get_inventory_item',
|
|
21
|
+
description: 'Get a specific inventory item by SKU.\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
|
|
22
|
+
inputSchema: {
|
|
23
|
+
sku: z.string().describe('The seller-defined SKU'),
|
|
24
|
+
},
|
|
25
|
+
outputSchema: zodToJsonSchema(getInventoryItemOutputSchema, {
|
|
26
|
+
name: 'GetInventoryItemResponse',
|
|
27
|
+
$refStrategy: 'none',
|
|
28
|
+
}),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'ebay_create_inventory_item',
|
|
32
|
+
description: 'Create or replace an inventory item.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
|
|
33
|
+
inputSchema: {
|
|
34
|
+
sku: z.string().describe('The seller-defined SKU'),
|
|
35
|
+
inventoryItem: inventoryItemSchema.describe('Inventory item details'),
|
|
36
|
+
},
|
|
37
|
+
outputSchema: zodToJsonSchema(createInventoryItemOutputSchema, {
|
|
38
|
+
name: 'CreateInventoryItemResponse',
|
|
39
|
+
$refStrategy: 'none',
|
|
40
|
+
}),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'ebay_delete_inventory_item',
|
|
44
|
+
description: 'Delete an inventory item by SKU.\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
|
|
45
|
+
inputSchema: {
|
|
46
|
+
sku: z.string().describe('The seller-defined SKU to delete'),
|
|
47
|
+
},
|
|
48
|
+
outputSchema: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
properties: {},
|
|
51
|
+
description: 'Empty response on successful deletion (HTTP 204)',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'ebay_get_offers',
|
|
56
|
+
description: 'Get all offers for the seller',
|
|
57
|
+
inputSchema: {
|
|
58
|
+
sku: z.string().optional().describe('Filter by SKU'),
|
|
59
|
+
marketplaceId: z.nativeEnum(MarketplaceId).optional().describe('Filter by marketplace ID'),
|
|
60
|
+
limit: z.number().optional().describe('Number of offers to return'),
|
|
61
|
+
},
|
|
62
|
+
outputSchema: zodToJsonSchema(getOffersOutputSchema, {
|
|
63
|
+
name: 'GetOffersResponse',
|
|
64
|
+
$refStrategy: 'none',
|
|
65
|
+
}),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'ebay_create_offer',
|
|
69
|
+
description: 'Create a new offer for an inventory item',
|
|
70
|
+
inputSchema: {
|
|
71
|
+
offer: offerSchema.describe('Offer details including SKU, marketplace, pricing, and policies'),
|
|
72
|
+
},
|
|
73
|
+
outputSchema: zodToJsonSchema(createOfferOutputSchema, {
|
|
74
|
+
name: 'CreateOfferResponse',
|
|
75
|
+
$refStrategy: 'none',
|
|
76
|
+
}),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'ebay_publish_offer',
|
|
80
|
+
description: 'Publish an offer to create a listing',
|
|
81
|
+
inputSchema: {
|
|
82
|
+
offerId: z.string().describe('The offer ID to publish'),
|
|
83
|
+
},
|
|
84
|
+
outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
|
|
85
|
+
name: 'PublishOfferResponse',
|
|
86
|
+
$refStrategy: 'none',
|
|
87
|
+
}),
|
|
88
|
+
},
|
|
89
|
+
// Bulk Operations
|
|
90
|
+
{
|
|
91
|
+
name: 'ebay_bulk_create_or_replace_inventory_item',
|
|
92
|
+
description: 'Bulk create or replace multiple inventory items',
|
|
93
|
+
inputSchema: {
|
|
94
|
+
requests: bulkInventoryItemRequestSchema.describe('Bulk inventory item requests'),
|
|
95
|
+
},
|
|
96
|
+
outputSchema: zodToJsonSchema(bulkInventoryItemResponseSchema, {
|
|
97
|
+
name: 'BulkInventoryItemResponse',
|
|
98
|
+
$refStrategy: 'none',
|
|
99
|
+
}),
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'ebay_bulk_get_inventory_item',
|
|
103
|
+
description: 'Bulk get multiple inventory items',
|
|
104
|
+
inputSchema: {
|
|
105
|
+
requests: z
|
|
106
|
+
.object({
|
|
107
|
+
requests: z.array(z
|
|
108
|
+
.object({
|
|
109
|
+
sku: z.string(),
|
|
110
|
+
})
|
|
111
|
+
.passthrough()),
|
|
112
|
+
})
|
|
113
|
+
.passthrough()
|
|
114
|
+
.describe('Bulk inventory item get requests with SKU list'),
|
|
115
|
+
},
|
|
116
|
+
outputSchema: zodToJsonSchema(bulkInventoryItemResponseSchema, {
|
|
117
|
+
name: 'BulkGetInventoryItemResponse',
|
|
118
|
+
$refStrategy: 'none',
|
|
119
|
+
}),
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'ebay_bulk_update_price_quantity',
|
|
123
|
+
description: 'Bulk update price and quantity for multiple offers',
|
|
124
|
+
inputSchema: {
|
|
125
|
+
requests: bulkPriceQuantityRequestSchema.describe('Bulk price and quantity update requests'),
|
|
126
|
+
},
|
|
127
|
+
outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
|
|
128
|
+
name: 'BulkUpdatePriceQuantityResponse',
|
|
129
|
+
$refStrategy: 'none',
|
|
130
|
+
}),
|
|
131
|
+
},
|
|
132
|
+
// Product Compatibility
|
|
133
|
+
{
|
|
134
|
+
name: 'ebay_get_product_compatibility',
|
|
135
|
+
description: 'Get product compatibility information for an inventory item',
|
|
136
|
+
inputSchema: {
|
|
137
|
+
sku: z.string().describe('The seller-defined SKU'),
|
|
138
|
+
},
|
|
139
|
+
outputSchema: zodToJsonSchema(getProductCompatibilityOutputSchema, {
|
|
140
|
+
name: 'GetProductCompatibilityResponse',
|
|
141
|
+
$refStrategy: 'none',
|
|
142
|
+
}),
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'ebay_create_or_replace_product_compatibility',
|
|
146
|
+
description: 'Create or replace product compatibility for an inventory item',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
sku: z.string().describe('The seller-defined SKU'),
|
|
149
|
+
compatibility: productCompatibilitySchema.describe('Product compatibility details'),
|
|
150
|
+
},
|
|
151
|
+
outputSchema: zodToJsonSchema(createInventoryItemOutputSchema, {
|
|
152
|
+
name: 'CreateProductCompatibilityResponse',
|
|
153
|
+
$refStrategy: 'none',
|
|
154
|
+
}),
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'ebay_delete_product_compatibility',
|
|
158
|
+
description: 'Delete product compatibility for an inventory item',
|
|
159
|
+
inputSchema: {
|
|
160
|
+
sku: z.string().describe('The seller-defined SKU'),
|
|
161
|
+
},
|
|
162
|
+
outputSchema: {
|
|
163
|
+
type: 'object',
|
|
164
|
+
properties: {},
|
|
165
|
+
description: 'Empty response on successful deletion (HTTP 204)',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
// Inventory Item Groups
|
|
169
|
+
{
|
|
170
|
+
name: 'ebay_get_inventory_item_group',
|
|
171
|
+
description: 'Get an inventory item group (variation group)',
|
|
172
|
+
inputSchema: {
|
|
173
|
+
inventoryItemGroupKey: z.string().describe('The inventory item group key'),
|
|
174
|
+
},
|
|
175
|
+
outputSchema: zodToJsonSchema(getInventoryItemGroupOutputSchema, {
|
|
176
|
+
name: 'GetInventoryItemGroupResponse',
|
|
177
|
+
$refStrategy: 'none',
|
|
178
|
+
}),
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'ebay_create_or_replace_inventory_item_group',
|
|
182
|
+
description: 'Create or replace an inventory item group',
|
|
183
|
+
inputSchema: {
|
|
184
|
+
inventoryItemGroupKey: z.string().describe('The inventory item group key'),
|
|
185
|
+
inventoryItemGroup: inventoryItemGroupSchema.describe('Inventory item group details'),
|
|
186
|
+
},
|
|
187
|
+
outputSchema: zodToJsonSchema(createInventoryItemOutputSchema, {
|
|
188
|
+
name: 'CreateInventoryItemGroupResponse',
|
|
189
|
+
$refStrategy: 'none',
|
|
190
|
+
}),
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'ebay_delete_inventory_item_group',
|
|
194
|
+
description: 'Delete an inventory item group',
|
|
195
|
+
inputSchema: {
|
|
196
|
+
inventoryItemGroupKey: z.string().describe('The inventory item group key'),
|
|
197
|
+
},
|
|
198
|
+
outputSchema: {
|
|
199
|
+
type: 'object',
|
|
200
|
+
properties: {},
|
|
201
|
+
description: 'Empty response on successful deletion (HTTP 204)',
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
// Location Management
|
|
205
|
+
{
|
|
206
|
+
name: 'ebay_get_inventory_locations',
|
|
207
|
+
description: 'Get all inventory locations',
|
|
208
|
+
inputSchema: {
|
|
209
|
+
limit: z.number().optional().describe('Number of locations to return'),
|
|
210
|
+
offset: z.number().optional().describe('Number of locations to skip'),
|
|
211
|
+
},
|
|
212
|
+
outputSchema: zodToJsonSchema(getInventoryLocationsOutputSchema, {
|
|
213
|
+
name: 'GetInventoryLocationsResponse',
|
|
214
|
+
$refStrategy: 'none',
|
|
215
|
+
}),
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'ebay_get_inventory_location',
|
|
219
|
+
description: 'Get a specific inventory location',
|
|
220
|
+
inputSchema: {
|
|
221
|
+
merchantLocationKey: z.string().describe('The merchant location key'),
|
|
222
|
+
},
|
|
223
|
+
outputSchema: zodToJsonSchema(createInventoryLocationOutputSchema, {
|
|
224
|
+
name: 'GetInventoryLocationResponse',
|
|
225
|
+
$refStrategy: 'none',
|
|
226
|
+
}),
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'ebay_create_or_replace_inventory_location',
|
|
230
|
+
description: 'Create or replace an inventory location',
|
|
231
|
+
inputSchema: {
|
|
232
|
+
merchantLocationKey: z.string().describe('The merchant location key'),
|
|
233
|
+
location: locationSchema.describe('Location details'),
|
|
234
|
+
},
|
|
235
|
+
outputSchema: zodToJsonSchema(createInventoryLocationOutputSchema, {
|
|
236
|
+
name: 'CreateInventoryLocationResponse',
|
|
237
|
+
$refStrategy: 'none',
|
|
238
|
+
}),
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: 'ebay_delete_inventory_location',
|
|
242
|
+
description: 'Delete an inventory location',
|
|
243
|
+
inputSchema: {
|
|
244
|
+
merchantLocationKey: z.string().describe('The merchant location key'),
|
|
245
|
+
},
|
|
246
|
+
outputSchema: {
|
|
247
|
+
type: 'object',
|
|
248
|
+
properties: {},
|
|
249
|
+
description: 'Empty response on successful deletion (HTTP 204)',
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'ebay_disable_inventory_location',
|
|
254
|
+
description: 'Disable an inventory location',
|
|
255
|
+
inputSchema: {
|
|
256
|
+
merchantLocationKey: z.string().describe('The merchant location key'),
|
|
257
|
+
},
|
|
258
|
+
outputSchema: {
|
|
259
|
+
type: 'object',
|
|
260
|
+
properties: {},
|
|
261
|
+
description: 'Empty response on successful operation (HTTP 204)',
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: 'ebay_enable_inventory_location',
|
|
266
|
+
description: 'Enable an inventory location',
|
|
267
|
+
inputSchema: {
|
|
268
|
+
merchantLocationKey: z.string().describe('The merchant location key'),
|
|
269
|
+
},
|
|
270
|
+
outputSchema: {
|
|
271
|
+
type: 'object',
|
|
272
|
+
properties: {},
|
|
273
|
+
description: 'Empty response on successful operation (HTTP 204)',
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: 'ebay_update_location_details',
|
|
278
|
+
description: 'Update location details for an inventory location',
|
|
279
|
+
inputSchema: {
|
|
280
|
+
merchantLocationKey: z.string().describe('The merchant location key'),
|
|
281
|
+
locationDetails: locationSchema.describe('Location detail updates'),
|
|
282
|
+
},
|
|
283
|
+
outputSchema: zodToJsonSchema(createInventoryLocationOutputSchema, {
|
|
284
|
+
name: 'UpdateLocationDetailsResponse',
|
|
285
|
+
$refStrategy: 'none',
|
|
286
|
+
}),
|
|
287
|
+
},
|
|
288
|
+
// Offer Management
|
|
289
|
+
{
|
|
290
|
+
name: 'ebay_get_offer',
|
|
291
|
+
description: 'Get a specific offer by ID',
|
|
292
|
+
inputSchema: {
|
|
293
|
+
offerId: z.string().describe('The offer ID'),
|
|
294
|
+
},
|
|
295
|
+
outputSchema: zodToJsonSchema(offerResponseSchema, {
|
|
296
|
+
name: 'GetOfferResponse',
|
|
297
|
+
$refStrategy: 'none',
|
|
298
|
+
}),
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: 'ebay_update_offer',
|
|
302
|
+
description: 'Update an existing offer',
|
|
303
|
+
inputSchema: {
|
|
304
|
+
offerId: z.string().describe('The offer ID'),
|
|
305
|
+
offer: offerSchema.describe('Updated offer details'),
|
|
306
|
+
},
|
|
307
|
+
outputSchema: zodToJsonSchema(offerResponseSchema, {
|
|
308
|
+
name: 'UpdateOfferResponse',
|
|
309
|
+
$refStrategy: 'none',
|
|
310
|
+
}),
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'ebay_delete_offer',
|
|
314
|
+
description: 'Delete an offer',
|
|
315
|
+
inputSchema: {
|
|
316
|
+
offerId: z.string().describe('The offer ID to delete'),
|
|
317
|
+
},
|
|
318
|
+
outputSchema: {
|
|
319
|
+
type: 'object',
|
|
320
|
+
properties: {},
|
|
321
|
+
description: 'Empty response on successful deletion (HTTP 204)',
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: 'ebay_withdraw_offer',
|
|
326
|
+
description: 'Withdraw a published offer',
|
|
327
|
+
inputSchema: {
|
|
328
|
+
offerId: z.string().describe('The offer ID to withdraw'),
|
|
329
|
+
},
|
|
330
|
+
outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
|
|
331
|
+
name: 'WithdrawOfferResponse',
|
|
332
|
+
$refStrategy: 'none',
|
|
333
|
+
}),
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
name: 'ebay_bulk_create_offer',
|
|
337
|
+
description: 'Bulk create multiple offers',
|
|
338
|
+
inputSchema: {
|
|
339
|
+
requests: bulkOfferRequestSchema.describe('Bulk offer creation requests'),
|
|
340
|
+
},
|
|
341
|
+
outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
|
|
342
|
+
name: 'BulkCreateOfferResponse',
|
|
343
|
+
$refStrategy: 'none',
|
|
344
|
+
}),
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: 'ebay_bulk_publish_offer',
|
|
348
|
+
description: 'Bulk publish multiple offers',
|
|
349
|
+
inputSchema: {
|
|
350
|
+
requests: bulkPublishRequestSchema.describe('Bulk offer publish requests'),
|
|
351
|
+
},
|
|
352
|
+
outputSchema: zodToJsonSchema(bulkPublishResponseSchema, {
|
|
353
|
+
name: 'BulkPublishOfferResponse',
|
|
354
|
+
$refStrategy: 'none',
|
|
355
|
+
}),
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: 'ebay_get_listing_fees',
|
|
359
|
+
description: 'Get listing fees for offers before publishing',
|
|
360
|
+
inputSchema: {
|
|
361
|
+
offers: listingFeesRequestSchema.describe('Offers to calculate listing fees for'),
|
|
362
|
+
},
|
|
363
|
+
outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
|
|
364
|
+
name: 'GetListingFeesResponse',
|
|
365
|
+
$refStrategy: 'none',
|
|
366
|
+
}),
|
|
367
|
+
},
|
|
368
|
+
// Listing Migration
|
|
369
|
+
{
|
|
370
|
+
name: 'ebay_bulk_migrate_listing',
|
|
371
|
+
description: 'Bulk migrate listings to the inventory model',
|
|
372
|
+
inputSchema: {
|
|
373
|
+
requests: bulkMigrateRequestSchema.describe('Bulk listing migration requests'),
|
|
374
|
+
},
|
|
375
|
+
outputSchema: zodToJsonSchema(bulkOfferResponseSchema, {
|
|
376
|
+
name: 'BulkMigrateListingResponse',
|
|
377
|
+
$refStrategy: 'none',
|
|
378
|
+
}),
|
|
379
|
+
},
|
|
380
|
+
// Listing Locations
|
|
381
|
+
{
|
|
382
|
+
name: 'ebay_get_listing_locations',
|
|
383
|
+
description: 'Get inventory locations for a specific listing.\n\nRequired OAuth Scope: sell.inventory.readonly or sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory.readonly',
|
|
384
|
+
inputSchema: {
|
|
385
|
+
listingId: z.string().describe('The listing ID'),
|
|
386
|
+
sku: z.string().describe('The seller-defined SKU'),
|
|
387
|
+
},
|
|
388
|
+
outputSchema: zodToJsonSchema(getInventoryLocationsOutputSchema, {
|
|
389
|
+
name: 'GetListingLocationsResponse',
|
|
390
|
+
$refStrategy: 'none',
|
|
391
|
+
}),
|
|
392
|
+
},
|
|
393
|
+
// Inventory Item Group Publishing
|
|
394
|
+
{
|
|
395
|
+
name: 'ebay_publish_offer_by_inventory_item_group',
|
|
396
|
+
description: 'Publish an offer for an inventory item group (variation listing).\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
|
|
397
|
+
inputSchema: {
|
|
398
|
+
request: z
|
|
399
|
+
.object({
|
|
400
|
+
inventoryItemGroupKey: z.string(),
|
|
401
|
+
marketplaceId: z.nativeEnum(MarketplaceId),
|
|
402
|
+
})
|
|
403
|
+
.passthrough()
|
|
404
|
+
.describe('Publish request with inventory item group key and marketplace ID'),
|
|
405
|
+
},
|
|
406
|
+
outputSchema: zodToJsonSchema(publishOfferOutputSchema, {
|
|
407
|
+
name: 'PublishOfferByInventoryItemGroupResponse',
|
|
408
|
+
$refStrategy: 'none',
|
|
409
|
+
}),
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: 'ebay_withdraw_offer_by_inventory_item_group',
|
|
413
|
+
description: 'Withdraw an offer for an inventory item group (variation listing).\n\nRequired OAuth Scope: sell.inventory\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.inventory',
|
|
414
|
+
inputSchema: {
|
|
415
|
+
request: z
|
|
416
|
+
.object({
|
|
417
|
+
inventoryItemGroupKey: z.string(),
|
|
418
|
+
marketplaceId: z.nativeEnum(MarketplaceId),
|
|
419
|
+
})
|
|
420
|
+
.passthrough()
|
|
421
|
+
.describe('Withdraw request with inventory item group key and marketplace ID'),
|
|
422
|
+
},
|
|
423
|
+
outputSchema: {
|
|
424
|
+
type: 'object',
|
|
425
|
+
properties: {},
|
|
426
|
+
description: 'Empty response on successful withdrawal (HTTP 204)',
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OutputArgs, ToolAnnotations } from '../tool-definitions.js';
|
|
3
|
+
export interface ToolDefinition {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: Record<string, z.ZodTypeAny>;
|
|
7
|
+
title?: string;
|
|
8
|
+
outputSchema?: OutputArgs;
|
|
9
|
+
annotations?: ToolAnnotations;
|
|
10
|
+
_meta?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export declare const marketingTools: ToolDefinition[];
|