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,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 fulfillmentTools: ToolDefinition[];
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
3
|
+
import { shippingFulfillmentSchema } from '../schemas.js';
|
|
4
|
+
import { getOrdersOutputSchema, getOrderOutputSchema, createShippingFulfillmentOutputSchema, getShippingFulfillmentsOutputSchema, issueRefundOutputSchema, getPaymentDisputesOutputSchema, } from '../../schemas/fulfillment/orders.js';
|
|
5
|
+
export const fulfillmentTools = [
|
|
6
|
+
{
|
|
7
|
+
name: 'ebay_get_orders',
|
|
8
|
+
description: 'Retrieve orders for the seller.\n\nRequired OAuth Scope: sell.fulfillment.readonly or sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly',
|
|
9
|
+
inputSchema: {
|
|
10
|
+
filter: z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('Filter criteria (e.g., orderfulfillmentstatus:{NOT_STARTED})'),
|
|
14
|
+
limit: z.number().optional().describe('Number of orders to return'),
|
|
15
|
+
offset: z.number().optional().describe('Number of orders to skip'),
|
|
16
|
+
},
|
|
17
|
+
outputSchema: zodToJsonSchema(getOrdersOutputSchema, {
|
|
18
|
+
name: 'GetOrdersResponse',
|
|
19
|
+
$refStrategy: 'none',
|
|
20
|
+
}),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'ebay_get_order',
|
|
24
|
+
description: 'Get details of a specific order.\n\nRequired OAuth Scope: sell.fulfillment.readonly or sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly',
|
|
25
|
+
inputSchema: {
|
|
26
|
+
orderId: z.string().describe('The unique order ID'),
|
|
27
|
+
},
|
|
28
|
+
outputSchema: zodToJsonSchema(getOrderOutputSchema, {
|
|
29
|
+
name: 'GetOrderResponse',
|
|
30
|
+
$refStrategy: 'none',
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'ebay_create_shipping_fulfillment',
|
|
35
|
+
description: 'Create a shipping fulfillment for an order.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
36
|
+
inputSchema: {
|
|
37
|
+
orderId: z.string().describe('The order ID'),
|
|
38
|
+
fulfillment: shippingFulfillmentSchema.describe('Shipping fulfillment details including tracking number'),
|
|
39
|
+
},
|
|
40
|
+
outputSchema: zodToJsonSchema(createShippingFulfillmentOutputSchema, {
|
|
41
|
+
name: 'CreateShippingFulfillmentResponse',
|
|
42
|
+
$refStrategy: 'none',
|
|
43
|
+
}),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'ebay_get_shipping_fulfillments',
|
|
47
|
+
description: 'Get all shipping fulfillments for an order.\n\nRequired OAuth Scope: sell.fulfillment.readonly or sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly',
|
|
48
|
+
inputSchema: {
|
|
49
|
+
orderId: z.string().describe('The order ID to get fulfillments for'),
|
|
50
|
+
},
|
|
51
|
+
outputSchema: zodToJsonSchema(getShippingFulfillmentsOutputSchema, {
|
|
52
|
+
name: 'GetShippingFulfillmentsResponse',
|
|
53
|
+
$refStrategy: 'none',
|
|
54
|
+
}),
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'ebay_get_shipping_fulfillment',
|
|
58
|
+
description: 'Get a specific shipping fulfillment by ID.\n\nRequired OAuth Scope: sell.fulfillment.readonly or sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly',
|
|
59
|
+
inputSchema: {
|
|
60
|
+
orderId: z.string().describe('The order ID'),
|
|
61
|
+
fulfillmentId: z.string().describe('The fulfillment ID'),
|
|
62
|
+
},
|
|
63
|
+
outputSchema: zodToJsonSchema(createShippingFulfillmentOutputSchema, {
|
|
64
|
+
name: 'GetShippingFulfillmentResponse',
|
|
65
|
+
$refStrategy: 'none',
|
|
66
|
+
}),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'ebay_issue_refund',
|
|
70
|
+
description: 'Issue a full or partial refund for an eBay order. Use this to refund buyers for orders, including specifying the refund amount and reason.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
71
|
+
inputSchema: {
|
|
72
|
+
orderId: z.string().describe('The unique eBay order ID to refund'),
|
|
73
|
+
refundData: z
|
|
74
|
+
.object({
|
|
75
|
+
reasonForRefund: z
|
|
76
|
+
.string()
|
|
77
|
+
.describe('REQUIRED. Reason code: BUYER_CANCEL, OUT_OF_STOCK, FOUND_CHEAPER_PRICE, INCORRECT_PRICE, ITEM_DAMAGED, ITEM_DEFECTIVE, LOST_IN_TRANSIT, MUTUALLY_AGREED, SELLER_CANCEL'),
|
|
78
|
+
comment: z
|
|
79
|
+
.string()
|
|
80
|
+
.optional()
|
|
81
|
+
.describe('Optional comment to buyer about the refund (max 100 characters)'),
|
|
82
|
+
refundItems: z
|
|
83
|
+
.array(z.object({
|
|
84
|
+
lineItemId: z
|
|
85
|
+
.string()
|
|
86
|
+
.describe('The unique identifier of the order line item to refund'),
|
|
87
|
+
refundAmount: z
|
|
88
|
+
.object({
|
|
89
|
+
value: z.string().describe('The monetary amount (e.g., "25.99")'),
|
|
90
|
+
currency: z
|
|
91
|
+
.string()
|
|
92
|
+
.describe('Three-letter ISO 4217 currency code (e.g., "USD")'),
|
|
93
|
+
})
|
|
94
|
+
.optional()
|
|
95
|
+
.describe('The amount to refund for this line item'),
|
|
96
|
+
legacyReference: z
|
|
97
|
+
.object({
|
|
98
|
+
legacyItemId: z.string().optional(),
|
|
99
|
+
legacyTransactionId: z.string().optional(),
|
|
100
|
+
})
|
|
101
|
+
.optional()
|
|
102
|
+
.describe('Optional legacy item ID/transaction ID pair for identifying the line item'),
|
|
103
|
+
}))
|
|
104
|
+
.optional()
|
|
105
|
+
.describe('Array of individual line items to refund. Use this for partial refunds of specific items. Each item requires lineItemId and refundAmount.'),
|
|
106
|
+
orderLevelRefundAmount: z
|
|
107
|
+
.object({
|
|
108
|
+
value: z.string().describe('The monetary amount (e.g., "99.99")'),
|
|
109
|
+
currency: z.string().describe('Three-letter ISO 4217 currency code (e.g., "USD")'),
|
|
110
|
+
})
|
|
111
|
+
.optional()
|
|
112
|
+
.describe('Use this to refund the entire order amount. Alternative to refundItems. Include value and currency.'),
|
|
113
|
+
})
|
|
114
|
+
.describe('Refund details including amount, reason, and optional comment. Must include reasonForRefund (required), and either refundItems (for line item refunds) OR orderLevelRefundAmount (for full order refunds).'),
|
|
115
|
+
},
|
|
116
|
+
outputSchema: zodToJsonSchema(issueRefundOutputSchema, {
|
|
117
|
+
name: 'IssueRefundResponse',
|
|
118
|
+
$refStrategy: 'none',
|
|
119
|
+
}),
|
|
120
|
+
},
|
|
121
|
+
// Payment Dispute Tools
|
|
122
|
+
{
|
|
123
|
+
name: 'ebay_get_payment_dispute_summaries',
|
|
124
|
+
description: 'Get summaries of all payment disputes. Use filters to narrow results by dispute status, buyer username, or order ID.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
125
|
+
inputSchema: {
|
|
126
|
+
orderFilter: z
|
|
127
|
+
.string()
|
|
128
|
+
.optional()
|
|
129
|
+
.describe('Filter by order ID (e.g., orderid:170123456789)'),
|
|
130
|
+
buyerFilter: z
|
|
131
|
+
.string()
|
|
132
|
+
.optional()
|
|
133
|
+
.describe('Filter by buyer username (e.g., buyer_username:testbuyer)'),
|
|
134
|
+
openFilter: z
|
|
135
|
+
.boolean()
|
|
136
|
+
.optional()
|
|
137
|
+
.describe('If true, only return open disputes. If false, only return closed disputes'),
|
|
138
|
+
limit: z.number().optional().describe('Maximum number of disputes to return (default: 200)'),
|
|
139
|
+
offset: z.number().optional().describe('Number of disputes to skip for pagination'),
|
|
140
|
+
},
|
|
141
|
+
outputSchema: zodToJsonSchema(getPaymentDisputesOutputSchema, {
|
|
142
|
+
name: 'GetPaymentDisputeSummariesResponse',
|
|
143
|
+
$refStrategy: 'none',
|
|
144
|
+
}),
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'ebay_get_payment_dispute',
|
|
148
|
+
description: 'Get detailed information about a specific payment dispute.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
149
|
+
inputSchema: {
|
|
150
|
+
paymentDisputeId: z.string().describe('The unique payment dispute ID'),
|
|
151
|
+
},
|
|
152
|
+
outputSchema: {
|
|
153
|
+
type: 'object',
|
|
154
|
+
properties: {
|
|
155
|
+
paymentDisputeId: { type: 'string' },
|
|
156
|
+
orderId: { type: 'string' },
|
|
157
|
+
status: { type: 'string' },
|
|
158
|
+
reason: { type: 'string' },
|
|
159
|
+
amount: { type: 'object' },
|
|
160
|
+
},
|
|
161
|
+
description: 'Payment dispute details',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'ebay_get_payment_dispute_activities',
|
|
166
|
+
description: 'Get activity history for a payment dispute, including all actions taken by buyer, seller, and eBay.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
167
|
+
inputSchema: {
|
|
168
|
+
paymentDisputeId: z.string().describe('The payment dispute ID'),
|
|
169
|
+
},
|
|
170
|
+
outputSchema: {
|
|
171
|
+
type: 'object',
|
|
172
|
+
properties: {
|
|
173
|
+
activity: { type: 'array' },
|
|
174
|
+
},
|
|
175
|
+
description: 'Payment dispute activity history',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'ebay_accept_payment_dispute',
|
|
180
|
+
description: 'Accept a payment dispute and allow eBay to refund the buyer. Use this when you agree with the buyer claim.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
181
|
+
inputSchema: {
|
|
182
|
+
paymentDisputeId: z.string().describe('The payment dispute ID to accept'),
|
|
183
|
+
returnAddress: z
|
|
184
|
+
.object({
|
|
185
|
+
addressLine1: z.string().optional().describe('Street address line 1'),
|
|
186
|
+
addressLine2: z.string().optional().describe('Street address line 2'),
|
|
187
|
+
city: z.string().optional().describe('City name'),
|
|
188
|
+
stateOrProvince: z.string().optional().describe('State or province'),
|
|
189
|
+
postalCode: z.string().optional().describe('Postal/ZIP code'),
|
|
190
|
+
countryCode: z.string().describe('Two-letter ISO 3166-1 country code (e.g., "US")'),
|
|
191
|
+
})
|
|
192
|
+
.optional()
|
|
193
|
+
.describe('Return address for buyer to send item back (required for ITEM_NOT_RECEIVED disputes)'),
|
|
194
|
+
revisionNumber: z
|
|
195
|
+
.number()
|
|
196
|
+
.optional()
|
|
197
|
+
.describe('Dispute revision number for optimistic locking'),
|
|
198
|
+
},
|
|
199
|
+
outputSchema: {
|
|
200
|
+
type: 'object',
|
|
201
|
+
properties: {},
|
|
202
|
+
description: 'Empty response on successful acceptance (HTTP 204)',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'ebay_contest_payment_dispute',
|
|
207
|
+
description: 'Contest a payment dispute by providing evidence. Use this when you disagree with the buyer claim and want to provide proof.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
208
|
+
inputSchema: {
|
|
209
|
+
paymentDisputeId: z.string().describe('The payment dispute ID to contest'),
|
|
210
|
+
returnAddress: z
|
|
211
|
+
.object({
|
|
212
|
+
addressLine1: z.string().optional(),
|
|
213
|
+
addressLine2: z.string().optional(),
|
|
214
|
+
city: z.string().optional(),
|
|
215
|
+
stateOrProvince: z.string().optional(),
|
|
216
|
+
postalCode: z.string().optional(),
|
|
217
|
+
countryCode: z.string().describe('Two-letter ISO 3166-1 country code'),
|
|
218
|
+
})
|
|
219
|
+
.optional()
|
|
220
|
+
.describe('Return address for item returns (if applicable)'),
|
|
221
|
+
revisionNumber: z.number().optional().describe('Dispute revision number'),
|
|
222
|
+
},
|
|
223
|
+
outputSchema: {
|
|
224
|
+
type: 'object',
|
|
225
|
+
properties: {},
|
|
226
|
+
description: 'Empty response on successful contest (HTTP 204)',
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'ebay_add_payment_dispute_evidence',
|
|
231
|
+
description: 'Add evidence to support your case in a payment dispute. Provide evidence files and supporting information.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
232
|
+
inputSchema: {
|
|
233
|
+
paymentDisputeId: z.string().describe('The payment dispute ID'),
|
|
234
|
+
evidenceId: z
|
|
235
|
+
.string()
|
|
236
|
+
.optional()
|
|
237
|
+
.describe('Optional evidence ID to update existing evidence'),
|
|
238
|
+
evidenceType: z
|
|
239
|
+
.string()
|
|
240
|
+
.optional()
|
|
241
|
+
.describe('Type of evidence (e.g., PROOF_OF_DELIVERY, PROOF_OF_AUTHENTICITY)'),
|
|
242
|
+
files: z
|
|
243
|
+
.array(z.object({
|
|
244
|
+
fileId: z.string().describe('File ID from uploadEvidenceFile'),
|
|
245
|
+
}))
|
|
246
|
+
.optional()
|
|
247
|
+
.describe('Array of file IDs to attach as evidence'),
|
|
248
|
+
lineItems: z
|
|
249
|
+
.array(z.object({
|
|
250
|
+
itemId: z.string().optional().describe('eBay item ID'),
|
|
251
|
+
lineItemId: z.string().optional().describe('Order line item ID'),
|
|
252
|
+
}))
|
|
253
|
+
.optional()
|
|
254
|
+
.describe('Line items this evidence applies to'),
|
|
255
|
+
},
|
|
256
|
+
outputSchema: {
|
|
257
|
+
type: 'object',
|
|
258
|
+
properties: {},
|
|
259
|
+
description: 'Empty response on successful evidence addition (HTTP 204)',
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: 'ebay_update_payment_dispute_evidence',
|
|
264
|
+
description: 'Update existing evidence in a payment dispute.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
265
|
+
inputSchema: {
|
|
266
|
+
paymentDisputeId: z.string().describe('The payment dispute ID'),
|
|
267
|
+
evidenceId: z.string().describe('The evidence ID to update'),
|
|
268
|
+
evidenceType: z.string().optional().describe('Updated evidence type'),
|
|
269
|
+
files: z
|
|
270
|
+
.array(z.object({
|
|
271
|
+
fileId: z.string(),
|
|
272
|
+
}))
|
|
273
|
+
.optional()
|
|
274
|
+
.describe('Updated file IDs'),
|
|
275
|
+
lineItems: z
|
|
276
|
+
.array(z.object({
|
|
277
|
+
itemId: z.string().optional(),
|
|
278
|
+
lineItemId: z.string().optional(),
|
|
279
|
+
}))
|
|
280
|
+
.optional()
|
|
281
|
+
.describe('Updated line items'),
|
|
282
|
+
},
|
|
283
|
+
outputSchema: {
|
|
284
|
+
type: 'object',
|
|
285
|
+
properties: {},
|
|
286
|
+
description: 'Empty response on successful evidence update (HTTP 204)',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: 'ebay_upload_payment_dispute_evidence_file',
|
|
291
|
+
description: 'Upload a file as evidence for a payment dispute (e.g., shipping receipt, photos). Returns a file ID to use with add_evidence.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
292
|
+
inputSchema: {
|
|
293
|
+
paymentDisputeId: z.string().describe('The payment dispute ID'),
|
|
294
|
+
file: z
|
|
295
|
+
.object({
|
|
296
|
+
data: z.string().describe('Base64-encoded file data'),
|
|
297
|
+
filename: z.string().describe('File name with extension'),
|
|
298
|
+
})
|
|
299
|
+
.describe('File to upload'),
|
|
300
|
+
},
|
|
301
|
+
outputSchema: {
|
|
302
|
+
type: 'object',
|
|
303
|
+
properties: {
|
|
304
|
+
fileId: { type: 'string' },
|
|
305
|
+
},
|
|
306
|
+
description: 'File upload response with file ID',
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: 'ebay_fetch_payment_dispute_evidence_content',
|
|
311
|
+
description: 'Download evidence file content from a payment dispute.\n\nRequired OAuth Scope: sell.fulfillment\nMinimum Scope: https://api.ebay.com/oauth/api_scope/sell.fulfillment',
|
|
312
|
+
inputSchema: {
|
|
313
|
+
paymentDisputeId: z.string().describe('The payment dispute ID'),
|
|
314
|
+
evidenceId: z.string().describe('The evidence ID'),
|
|
315
|
+
fileId: z.string().describe('The file ID to download'),
|
|
316
|
+
},
|
|
317
|
+
outputSchema: {
|
|
318
|
+
type: 'object',
|
|
319
|
+
properties: {
|
|
320
|
+
content: { type: 'string' },
|
|
321
|
+
contentType: { type: 'string' },
|
|
322
|
+
},
|
|
323
|
+
description: 'File content and content type',
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Definitions Index
|
|
3
|
+
*
|
|
4
|
+
* This file aggregates all tool definitions from category-specific files.
|
|
5
|
+
* Each category is in its own file for better organization and reduced context.
|
|
6
|
+
*
|
|
7
|
+
* Benefits:
|
|
8
|
+
* - Reduced file size (each file ~50-300 lines vs 1,402 lines)
|
|
9
|
+
* - Better organization by API domain
|
|
10
|
+
* - Easier to find and modify tools
|
|
11
|
+
* - Less context for AI to process per category
|
|
12
|
+
*/
|
|
13
|
+
import { tokenManagementTools } from './token-management.js';
|
|
14
|
+
import { accountTools } from './account.js';
|
|
15
|
+
import { inventoryTools } from './inventory.js';
|
|
16
|
+
import { fulfillmentTools } from './fulfillment.js';
|
|
17
|
+
import { marketingTools } from './marketing.js';
|
|
18
|
+
import { analyticsTools } from './analytics.js';
|
|
19
|
+
import { metadataTools } from './metadata.js';
|
|
20
|
+
import { taxonomyTools } from './taxonomy.js';
|
|
21
|
+
import { communicationTools } from './communication.js';
|
|
22
|
+
import { otherApiTools } from './other.js';
|
|
23
|
+
export { tokenManagementTools, accountTools, inventoryTools, fulfillmentTools, marketingTools, analyticsTools, metadataTools, taxonomyTools, communicationTools, otherApiTools, };
|
|
24
|
+
export declare const allTools: import("./token-management.js").ToolDefinition[];
|
|
25
|
+
export type { ToolDefinition } from './account.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Definitions Index
|
|
3
|
+
*
|
|
4
|
+
* This file aggregates all tool definitions from category-specific files.
|
|
5
|
+
* Each category is in its own file for better organization and reduced context.
|
|
6
|
+
*
|
|
7
|
+
* Benefits:
|
|
8
|
+
* - Reduced file size (each file ~50-300 lines vs 1,402 lines)
|
|
9
|
+
* - Better organization by API domain
|
|
10
|
+
* - Easier to find and modify tools
|
|
11
|
+
* - Less context for AI to process per category
|
|
12
|
+
*/
|
|
13
|
+
import { tokenManagementTools } from './token-management.js';
|
|
14
|
+
import { accountTools } from './account.js';
|
|
15
|
+
import { inventoryTools } from './inventory.js';
|
|
16
|
+
import { fulfillmentTools } from './fulfillment.js';
|
|
17
|
+
import { marketingTools } from './marketing.js';
|
|
18
|
+
import { analyticsTools } from './analytics.js';
|
|
19
|
+
import { metadataTools } from './metadata.js';
|
|
20
|
+
import { taxonomyTools } from './taxonomy.js';
|
|
21
|
+
import { communicationTools } from './communication.js';
|
|
22
|
+
import { otherApiTools } from './other.js';
|
|
23
|
+
// Export individual categories
|
|
24
|
+
export { tokenManagementTools, accountTools, inventoryTools, fulfillmentTools, marketingTools, analyticsTools, metadataTools, taxonomyTools, communicationTools, otherApiTools, };
|
|
25
|
+
// Export all tools as a single array
|
|
26
|
+
export const allTools = [
|
|
27
|
+
...tokenManagementTools,
|
|
28
|
+
...accountTools,
|
|
29
|
+
...inventoryTools,
|
|
30
|
+
...fulfillmentTools,
|
|
31
|
+
...marketingTools,
|
|
32
|
+
...analyticsTools,
|
|
33
|
+
...metadataTools,
|
|
34
|
+
...taxonomyTools,
|
|
35
|
+
...communicationTools,
|
|
36
|
+
...otherApiTools,
|
|
37
|
+
];
|
|
@@ -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 inventoryTools: ToolDefinition[];
|