ebay-mcp 1.13.2 → 1.14.0
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/README.de.md +3 -3
- package/README.es.md +3 -3
- package/README.fr.md +3 -3
- package/README.ja.md +3 -3
- package/README.ko.md +3 -3
- package/README.md +163 -41
- package/README.pt-BR.md +3 -3
- package/README.ru.md +3 -3
- package/README.zh-CN.md +3 -3
- package/build/api/account-management/account.js +633 -297
- package/build/api/analytics-and-report/analytics.js +111 -65
- package/build/api/client.js +199 -140
- package/build/api/clientRequestError.js +23 -0
- package/build/api/clientTrading.js +213 -0
- package/build/api/clientTradingError.js +4 -0
- package/build/api/communication/feedback.js +147 -59
- package/build/api/communication/message.js +134 -81
- package/build/api/communication/negotiation.js +65 -53
- package/build/api/communication/notification.js +458 -164
- package/build/api/developer/developer.js +99 -45
- package/build/api/index.js +23 -8
- package/build/api/listing-management/inventory.js +884 -338
- package/build/api/listing-metadata/metadata.js +416 -170
- package/build/api/listing-metadata/taxonomy.js +187 -42
- package/build/api/marketing-and-promotions/marketing.js +1392 -598
- package/build/api/marketing-and-promotions/recommendation.js +49 -24
- package/build/api/order-management/dispute.js +226 -45
- package/build/api/order-management/fulfillment.js +144 -71
- package/build/api/order-management/orderIssueHelpers.js +61 -0
- package/build/api/other/compliance.js +50 -38
- package/build/api/other/edelivery.js +603 -159
- package/build/api/other/finding.js +280 -0
- package/build/api/other/identity.js +30 -15
- package/build/api/other/translation.js +29 -14
- package/build/api/other/vero.js +113 -27
- package/build/api/rateLimitTracker.js +55 -0
- package/build/api/shared/request.js +189 -98
- package/build/api/trading/trading.js +154 -87
- package/build/auth/credentialSession.js +250 -0
- package/build/auth/oauth.js +298 -171
- package/build/auth/{oauth-metadata.js → oauthMetadata.js} +22 -6
- package/build/auth/oauthMiddleware.js +104 -0
- package/build/auth/{scope-utils.js → scopeUtils.js} +101 -28
- package/build/auth/tokenVerifier.js +243 -0
- package/build/auth/tokenVerifierError.js +21 -0
- package/build/config/environment.js +148 -113
- package/build/config/{tool-families.js → toolFamilies.js} +30 -14
- package/build/index.js +25 -19
- package/build/mcp/{http-transport.js → httpTransport.js} +102 -52
- package/build/mcp/readOnlyFilter.js +67 -0
- package/build/mcp/runtime.js +31 -13
- package/build/mcp/{tool-gating.js → toolGating.js} +77 -49
- package/build/mcp/{ui-bridge.js → uiBridge.js} +80 -23
- package/build/schemas/account-management/account.js +144 -6
- package/build/schemas/analytics/analytics.js +33 -19
- package/build/schemas/communication/messages.js +12 -42
- package/build/schemas/developer/developer.js +135 -0
- package/build/schemas/fulfillment/orders.js +183 -21
- package/build/schemas/index.js +27 -19
- package/build/schemas/inventory-management/inventory.js +17 -9
- package/build/schemas/marketing/marketing.js +480 -25
- package/build/schemas/metadata/metadata.js +11 -6
- package/build/schemas/other/finding.js +27 -0
- package/build/schemas/other/otherApis.js +424 -0
- package/build/schemas/taxonomy/taxonomy.js +11 -5
- package/build/scripts/{auto-setup.js → autoSetup.js} +87 -74
- package/build/scripts/{build-ui.js → buildUi.js} +6 -1
- package/build/scripts/{dev-sync.js → devSync.js} +169 -110
- package/build/scripts/diagnostics.js +52 -44
- package/build/scripts/{download-specs.js → downloadSpecs.js} +29 -21
- package/build/scripts/{interactive-setup.js → interactiveSetup.js} +84 -78
- package/build/scripts/setup.js +241 -178
- package/build/scripts/{setup-shared.js → setupShared.js} +29 -7
- package/build/scripts/skills.js +35 -27
- package/build/scripts/updateApiStatusDoc.js +71 -0
- package/build/serverHttp.js +90 -0
- package/build/skills/content.js +124 -118
- package/build/skills/index.js +22 -10
- package/build/skills/install.js +21 -10
- package/build/skills/markers.js +50 -15
- package/build/skills/{registry-snapshot.js → registrySnapshot.js} +8 -2
- package/build/skills/render.js +41 -14
- package/build/skills/targets.js +49 -17
- package/build/tools/categories/account.js +166 -264
- package/build/tools/categories/analytics.js +11 -22
- package/build/tools/categories/browse.js +17 -0
- package/build/tools/categories/communication.js +124 -399
- package/build/tools/categories/connector.js +23 -20
- package/build/tools/categories/developer.js +46 -159
- package/build/tools/categories/fulfillment.js +84 -215
- package/build/tools/categories/index.js +6 -14
- package/build/tools/categories/inventory.js +238 -293
- package/build/tools/categories/marketing.js +677 -39
- package/build/tools/categories/metadata.js +190 -117
- package/build/tools/categories/other.js +81 -208
- package/build/tools/categories/taxonomy.js +29 -20
- package/build/tools/categories/{token-management.js → tokenManagement.js} +187 -192
- package/build/tools/categories/trading.js +16 -47
- package/build/tools/contracts.js +34 -24
- package/build/tools/{define-tool.js → defineTool.js} +44 -29
- package/build/tools/registry.js +87 -29
- package/build/tools/schemas.js +3 -57
- package/build/tools/ui/archetypes.js +1 -0
- package/build/tools/ui/{map-helpers.js → mapHelpers.js} +69 -19
- package/build/tools/ui/maps.js +294 -80
- package/build/types/index.js +1 -1
- package/build/ui/card.html +14 -14
- package/build/ui/chart.html +14 -14
- package/build/ui/stat.html +87 -0
- package/build/ui/table.html +14 -14
- package/build/utils/apiStatusFeed.js +95 -0
- package/build/utils/cliOutput.js +15 -0
- package/build/utils/cliUi.js +108 -0
- package/build/utils/communication/feedback.js +57 -77
- package/build/utils/communication/message.js +69 -98
- package/build/utils/communication/negotiation.js +30 -57
- package/build/utils/communication/notification.js +112 -252
- package/build/utils/{date-converter.js → dateConverter.js} +62 -30
- package/build/utils/effectSchema.js +203 -0
- package/build/utils/effectSchemaAdapter.js +121 -0
- package/build/utils/effectSchemaChainMethods.js +146 -0
- package/build/utils/effectSchemaRefinements.js +104 -0
- package/build/utils/effectSchemaStringMethods.js +63 -0
- package/build/utils/effectSchemaTypes.js +47 -0
- package/build/utils/{env-parser.js → envParser.js} +10 -2
- package/build/utils/errors.js +7 -3
- package/build/utils/http.js +148 -89
- package/build/utils/{llm-client-detector.js → llmClientDetector.js} +295 -274
- package/build/utils/logger.js +127 -51
- package/build/utils/{oauth-helper.js → oauthHelper.js} +127 -90
- package/build/utils/other/compliance.js +18 -38
- package/build/utils/other/identity.js +2 -2
- package/build/utils/other/translation.js +4 -4
- package/build/utils/other/vero.js +36 -20
- package/build/utils/schemaHelpers.js +22 -0
- package/build/utils/scopeHelper.js +270 -0
- package/build/utils/securityChecker.js +316 -0
- package/build/utils/{setup-validator.js → setupValidator.js} +113 -94
- package/build/utils/{setup-wizard.js → setupWizard.js} +57 -46
- package/build/utils/{token-utils.js → tokenUtils.js} +2 -2
- package/build/utils/trading/trading.js +35 -0
- package/build/utils/typeGuards.js +12 -0
- package/build/utils/version.js +65 -29
- package/package.json +10 -8
- package/build/api/client-trading.js +0 -124
- package/build/api/communication/shared.js +0 -59
- package/build/api/shared/query-params.js +0 -16
- package/build/auth/credential-session.js +0 -166
- package/build/auth/oauth-middleware.js +0 -100
- package/build/auth/token-verifier.js +0 -186
- package/build/schemas/other/other-apis.js +0 -390
- package/build/scripts/update-api-status-doc.js +0 -44
- package/build/server-http.js +0 -85
- package/build/tools/definitions/marketing.js +0 -1381
- package/build/tools/tool-handlers/marketing.js +0 -312
- package/build/utils/account-management/account.js +0 -818
- package/build/utils/api-status-feed.js +0 -84
- package/build/utils/cli-ui.js +0 -47
- package/build/utils/order-management/dispute.js +0 -369
- package/build/utils/order-management/fulfillment.js +0 -205
- package/build/utils/other/edelivery.js +0 -235
- package/build/utils/schema-helpers.js +0 -13
- package/build/utils/scope-helper.js +0 -207
- package/build/utils/security-checker.js +0 -248
- package/build/utils/type-guards.js +0 -6
- /package/build/auth/{oauth-types.js → oauthTypes.js} +0 -0
- /package/build/{server-http.d.ts → serverHttp.d.ts} +0 -0
- /package/build/tools/ui/{view-models.js → viewModels.js} +0 -0
- /package/build/types/{ebay-enums.js → ebayEnums.js} +0 -0
|
@@ -1,213 +1,286 @@
|
|
|
1
|
-
import { z } from '
|
|
2
|
-
import { MarketplaceId } from '../../types/
|
|
3
|
-
import { defineTool } from '../../tools/
|
|
4
|
-
import {
|
|
1
|
+
import { z } from '../../utils/effectSchema.js';
|
|
2
|
+
import { MarketplaceId } from '../../types/ebayEnums.js';
|
|
3
|
+
import { defineTool } from '../../tools/defineTool.js';
|
|
4
|
+
import { Effect } from 'effect';
|
|
5
|
+
/** Marketplace-scoped metadata request with an optional category filter. */
|
|
6
|
+
const marketplaceMetadataSchema = z.object({
|
|
7
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
8
|
+
filter: z.string().optional().describe('Filter criteria'),
|
|
9
|
+
});
|
|
10
|
+
/** Marketplace-scoped metadata request with no filter parameter. */
|
|
11
|
+
const marketplaceOnlyMetadataSchema = z.object({
|
|
12
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
13
|
+
});
|
|
14
|
+
/** Metadata compatibility property filter from the generated request bodies. */
|
|
15
|
+
const propertyFilterSchema = z
|
|
16
|
+
.object({
|
|
17
|
+
propertyName: z.string().optional().describe('Compatibility property name'),
|
|
18
|
+
propertyValue: z.string().optional().describe('Compatibility property value'),
|
|
19
|
+
unitOfMeasurement: z.string().optional().describe('Property unit of measurement'),
|
|
20
|
+
url: z.string().optional().describe('Property reference URL'),
|
|
21
|
+
})
|
|
22
|
+
.passthrough();
|
|
23
|
+
/** Pagination input accepted by generated Metadata compatibility requests. */
|
|
24
|
+
const paginationInputSchema = z
|
|
25
|
+
.object({
|
|
26
|
+
limit: z.number().optional().describe('Maximum number of results'),
|
|
27
|
+
offset: z.number().optional().describe('Number of results to skip'),
|
|
28
|
+
})
|
|
29
|
+
.passthrough();
|
|
30
|
+
/** Sort order item accepted by generated Metadata compatibility requests. */
|
|
31
|
+
const sortOrderSchema = z
|
|
32
|
+
.object({
|
|
33
|
+
sortOrder: z
|
|
34
|
+
.object({
|
|
35
|
+
order: z.string().optional().describe('Sort order'),
|
|
36
|
+
propertyName: z.string().optional().describe('Property name to sort by'),
|
|
37
|
+
})
|
|
38
|
+
.passthrough()
|
|
39
|
+
.optional()
|
|
40
|
+
.describe('Sort property definition'),
|
|
41
|
+
sortPriority: z.string().optional().describe('Sort priority'),
|
|
42
|
+
})
|
|
43
|
+
.passthrough();
|
|
44
|
+
/** Product identifier accepted by getProductCompatibilities. */
|
|
45
|
+
const productIdentifierSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
ean: z.string().optional().describe('EAN product identifier'),
|
|
48
|
+
epid: z.string().optional().describe('eBay product identifier'),
|
|
49
|
+
isbn: z.string().optional().describe('ISBN product identifier'),
|
|
50
|
+
productId: z.string().optional().describe('Product identifier'),
|
|
51
|
+
upc: z.string().optional().describe('UPC product identifier'),
|
|
52
|
+
})
|
|
53
|
+
.passthrough();
|
|
54
|
+
/** Product disabled filter accepted by getProductCompatibilities. */
|
|
55
|
+
const disabledProductFilterSchema = z
|
|
56
|
+
.object({
|
|
57
|
+
excludeForEbayReviews: z.boolean().optional().describe('Exclude products blocked for reviews'),
|
|
58
|
+
excludeForEbaySelling: z.boolean().optional().describe('Exclude products blocked for selling'),
|
|
59
|
+
})
|
|
60
|
+
.passthrough();
|
|
61
|
+
/** Generated SpecificationRequest shape for getCompatibilitiesBySpecification. */
|
|
62
|
+
const specificationRequestSchema = z
|
|
63
|
+
.object({
|
|
64
|
+
categoryId: z.string().optional().describe('eBay leaf category ID'),
|
|
65
|
+
compatibilityPropertyFilters: z
|
|
66
|
+
.array(propertyFilterSchema)
|
|
67
|
+
.optional()
|
|
68
|
+
.describe('Compatibility property filters'),
|
|
69
|
+
dataset: z.string().optional().describe('Dataset to return'),
|
|
70
|
+
datasetPropertyName: z.array(z.string()).optional().describe('Specific dataset property names'),
|
|
71
|
+
exactMatch: z.boolean().optional().describe('Return only exact specification matches'),
|
|
72
|
+
paginationInput: paginationInputSchema.optional().describe('Pagination input'),
|
|
73
|
+
sortOrders: z.array(sortOrderSchema).optional().describe('Compatibility property sort order'),
|
|
74
|
+
specifications: z.array(propertyFilterSchema).optional().describe('Part specifications'),
|
|
75
|
+
})
|
|
76
|
+
.passthrough();
|
|
77
|
+
/** Generated PropertyNamesRequest shape for getCompatibilityPropertyNames. */
|
|
78
|
+
const propertyNamesRequestSchema = z
|
|
79
|
+
.object({
|
|
80
|
+
categoryId: z.string().optional().describe('eBay leaf category ID'),
|
|
81
|
+
dataset: z.array(z.string()).optional().describe('Datasets to return'),
|
|
82
|
+
})
|
|
83
|
+
.passthrough();
|
|
84
|
+
/** Generated PropertyValuesRequest shape for getCompatibilityPropertyValues. */
|
|
85
|
+
const propertyValuesRequestSchema = z
|
|
86
|
+
.object({
|
|
87
|
+
categoryId: z.string().optional().describe('eBay leaf category ID'),
|
|
88
|
+
propertyFilters: z.array(propertyFilterSchema).optional().describe('Property filters'),
|
|
89
|
+
propertyName: z.string().optional().describe('Property name whose values should be returned'),
|
|
90
|
+
sortOrder: z.string().optional().describe('Property value sort order'),
|
|
91
|
+
})
|
|
92
|
+
.passthrough();
|
|
93
|
+
/** Generated MultiCompatibilityPropertyValuesRequest shape. */
|
|
94
|
+
const multiCompatibilityPropertyValuesDataSchema = z
|
|
95
|
+
.object({
|
|
96
|
+
categoryId: z.string().optional().describe('eBay leaf category ID'),
|
|
97
|
+
propertyFilters: z.array(propertyFilterSchema).optional().describe('Property filters'),
|
|
98
|
+
propertyNames: z.array(z.string()).optional().describe('Property names'),
|
|
99
|
+
})
|
|
100
|
+
.passthrough();
|
|
101
|
+
/** Generated ProductRequest shape for getProductCompatibilities. */
|
|
102
|
+
const productRequestSchema = z
|
|
103
|
+
.object({
|
|
104
|
+
applicationPropertyFilters: z
|
|
105
|
+
.array(propertyFilterSchema)
|
|
106
|
+
.optional()
|
|
107
|
+
.describe('Application property filters'),
|
|
108
|
+
dataset: z.array(z.string()).optional().describe('Datasets to return'),
|
|
109
|
+
datasetPropertyName: z.array(z.string()).optional().describe('Dataset property names'),
|
|
110
|
+
disabledProductFilter: disabledProductFilterSchema
|
|
111
|
+
.optional()
|
|
112
|
+
.describe('Disabled product filter'),
|
|
113
|
+
paginationInput: paginationInputSchema.optional().describe('Pagination input'),
|
|
114
|
+
productIdentifier: productIdentifierSchema.optional().describe('Product identifier'),
|
|
115
|
+
sortOrders: z.array(sortOrderSchema).optional().describe('Compatibility property sort order'),
|
|
116
|
+
})
|
|
117
|
+
.passthrough();
|
|
118
|
+
/** Compatibility metadata request carrying the required marketplace header value. */
|
|
119
|
+
const compatibilitySpecificationRequestSchema = z.object({
|
|
120
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
121
|
+
specification: specificationRequestSchema.describe('Compatibility specification object'),
|
|
122
|
+
});
|
|
123
|
+
/** Compatibility property-name request carrying the required marketplace header value. */
|
|
124
|
+
const compatibilityPropertyNamesRequestSchema = z.object({
|
|
125
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
126
|
+
data: propertyNamesRequestSchema.describe('Compatibility property-name request data'),
|
|
127
|
+
});
|
|
128
|
+
/** Compatibility property-value request carrying the required marketplace header value. */
|
|
129
|
+
const compatibilityPropertyValuesRequestSchema = z.object({
|
|
130
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
131
|
+
data: propertyValuesRequestSchema.describe('Compatibility property-value request data'),
|
|
132
|
+
});
|
|
133
|
+
/** Multi-property compatibility value request carrying the required marketplace header value. */
|
|
134
|
+
const multiCompatibilityPropertyValuesRequestSchema = z.object({
|
|
135
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
136
|
+
data: multiCompatibilityPropertyValuesDataSchema.describe('Multi-property values request data'),
|
|
137
|
+
});
|
|
138
|
+
/** Product compatibility request carrying the required marketplace header value. */
|
|
139
|
+
const productCompatibilityRequestSchema = z.object({
|
|
140
|
+
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
141
|
+
data: productRequestSchema.describe('Product compatibility request data'),
|
|
142
|
+
});
|
|
143
|
+
/** Sales-tax jurisdiction request by country code. */
|
|
144
|
+
const salesTaxJurisdictionsSchema = z.object({
|
|
145
|
+
countryCode: z.string().describe('Country code (e.g., US)'),
|
|
146
|
+
});
|
|
5
147
|
/** Metadata API tools for marketplace, business policy, and sales tax metadata. */
|
|
6
148
|
export const metadataEntries = [
|
|
7
149
|
defineTool({
|
|
8
150
|
name: 'ebay_get_automotive_parts_compatibility_policies',
|
|
9
151
|
description: 'Get automotive parts compatibility policies for a marketplace',
|
|
10
|
-
inputSchema:
|
|
11
|
-
|
|
12
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
13
|
-
},
|
|
14
|
-
handler: (api, args) => api.metadata.getAutomotivePartsCompatibilityPolicies(args.marketplaceId, args.filter),
|
|
152
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
153
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getAutomotivePartsCompatibilityPolicies(args)),
|
|
15
154
|
}),
|
|
16
155
|
defineTool({
|
|
17
156
|
name: 'ebay_get_category_policies',
|
|
18
157
|
description: 'Get category policies for a marketplace',
|
|
19
|
-
inputSchema:
|
|
20
|
-
|
|
21
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
22
|
-
},
|
|
23
|
-
handler: (api, args) => api.metadata.getCategoryPolicies(args.marketplaceId, args.filter),
|
|
158
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
159
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getCategoryPolicies(args)),
|
|
24
160
|
}),
|
|
25
161
|
defineTool({
|
|
26
162
|
name: 'ebay_get_extended_producer_responsibility_policies',
|
|
27
163
|
description: 'Get extended producer responsibility policies for a marketplace',
|
|
28
|
-
inputSchema:
|
|
29
|
-
|
|
30
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
31
|
-
},
|
|
32
|
-
handler: (api, args) => api.metadata.getExtendedProducerResponsibilityPolicies(args.marketplaceId, args.filter),
|
|
164
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
165
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getExtendedProducerResponsibilityPolicies(args)),
|
|
33
166
|
}),
|
|
34
167
|
defineTool({
|
|
35
168
|
name: 'ebay_get_hazardous_materials_labels',
|
|
36
169
|
description: 'Get hazardous materials labels for a marketplace',
|
|
37
|
-
inputSchema:
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
handler: (api, args) => api.metadata.getHazardousMaterialsLabels(args.marketplaceId),
|
|
170
|
+
inputSchema: marketplaceOnlyMetadataSchema.shape,
|
|
171
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getHazardousMaterialsLabels(args)),
|
|
41
172
|
}),
|
|
42
173
|
defineTool({
|
|
43
174
|
name: 'ebay_get_item_condition_policies',
|
|
44
175
|
description: 'Get item condition policies for a marketplace',
|
|
45
|
-
inputSchema:
|
|
46
|
-
|
|
47
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
48
|
-
},
|
|
49
|
-
handler: (api, args) => api.metadata.getItemConditionPolicies(args.marketplaceId, args.filter),
|
|
176
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
177
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getItemConditionPolicies(args)),
|
|
50
178
|
}),
|
|
51
179
|
defineTool({
|
|
52
180
|
name: 'ebay_get_listing_structure_policies',
|
|
53
181
|
description: 'Get listing structure policies for a marketplace',
|
|
54
|
-
inputSchema:
|
|
55
|
-
|
|
56
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
57
|
-
},
|
|
58
|
-
handler: (api, args) => api.metadata.getListingStructurePolicies(args.marketplaceId, args.filter),
|
|
182
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
183
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getListingStructurePolicies(args)),
|
|
59
184
|
}),
|
|
60
185
|
defineTool({
|
|
61
186
|
name: 'ebay_get_negotiated_price_policies',
|
|
62
187
|
description: 'Get negotiated price policies for a marketplace',
|
|
63
|
-
inputSchema:
|
|
64
|
-
|
|
65
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
66
|
-
},
|
|
67
|
-
handler: (api, args) => api.metadata.getNegotiatedPricePolicies(args.marketplaceId, args.filter),
|
|
188
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
189
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getNegotiatedPricePolicies(args)),
|
|
68
190
|
}),
|
|
69
191
|
defineTool({
|
|
70
192
|
name: 'ebay_get_product_safety_labels',
|
|
71
193
|
description: 'Get product safety labels for a marketplace',
|
|
72
|
-
inputSchema:
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
handler: (api, args) => api.metadata.getProductSafetyLabels(args.marketplaceId),
|
|
194
|
+
inputSchema: marketplaceOnlyMetadataSchema.shape,
|
|
195
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getProductSafetyLabels(args)),
|
|
76
196
|
}),
|
|
77
197
|
defineTool({
|
|
78
198
|
name: 'ebay_get_regulatory_policies',
|
|
79
199
|
description: 'Get regulatory policies for a marketplace',
|
|
80
|
-
inputSchema:
|
|
81
|
-
|
|
82
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
83
|
-
},
|
|
84
|
-
handler: (api, args) => api.metadata.getRegulatoryPolicies(args.marketplaceId, args.filter),
|
|
200
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
201
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getRegulatoryPolicies(args)),
|
|
85
202
|
}),
|
|
86
203
|
defineTool({
|
|
87
204
|
name: 'ebay_get_return_policy_metadata',
|
|
88
205
|
description: 'Get marketplace return policy requirements and guidelines. Returns eBay policies that define whether return policies are required for categories and the guidelines for creating domestic and international return policies.',
|
|
89
|
-
inputSchema:
|
|
90
|
-
|
|
91
|
-
filter: z
|
|
92
|
-
.string()
|
|
93
|
-
.optional()
|
|
94
|
-
.describe('Filter criteria to limit results to specific category IDs'),
|
|
95
|
-
},
|
|
96
|
-
handler: (api, args) => api.metadata.getReturnPolicies(args.marketplaceId, args.filter),
|
|
97
|
-
}),
|
|
98
|
-
defineTool({
|
|
99
|
-
name: 'ebay_get_shipping_cost_type_policies',
|
|
100
|
-
description: 'Get shipping cost type policies for a marketplace',
|
|
101
|
-
inputSchema: {
|
|
102
|
-
marketplaceId: z.nativeEnum(MarketplaceId).describe('Marketplace ID'),
|
|
103
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
104
|
-
},
|
|
105
|
-
handler: (api, args) => api.metadata.getShippingCostTypePolicies(args.marketplaceId, args.filter),
|
|
206
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
207
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getReturnPolicies(args)),
|
|
106
208
|
}),
|
|
107
209
|
defineTool({
|
|
108
210
|
name: 'ebay_get_classified_ad_policies',
|
|
109
211
|
description: 'Get classified ad policies for a marketplace',
|
|
110
|
-
inputSchema:
|
|
111
|
-
|
|
112
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
113
|
-
},
|
|
114
|
-
handler: (api, args) => api.metadata.getClassifiedAdPolicies(args.marketplaceId, args.filter),
|
|
212
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
213
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getClassifiedAdPolicies(args)),
|
|
115
214
|
}),
|
|
116
215
|
defineTool({
|
|
117
216
|
name: 'ebay_get_currencies',
|
|
118
217
|
description: 'Get currencies for a marketplace',
|
|
119
|
-
inputSchema:
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
handler: (api, args) => api.metadata.getCurrencies(args.marketplaceId),
|
|
218
|
+
inputSchema: marketplaceOnlyMetadataSchema.shape,
|
|
219
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getCurrencies(args)),
|
|
123
220
|
}),
|
|
124
221
|
defineTool({
|
|
125
222
|
name: 'ebay_get_listing_type_policies',
|
|
126
223
|
description: 'Get listing type policies for a marketplace',
|
|
127
|
-
inputSchema:
|
|
128
|
-
|
|
129
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
130
|
-
},
|
|
131
|
-
handler: (api, args) => api.metadata.getListingTypePolicies(args.marketplaceId, args.filter),
|
|
224
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
225
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getListingTypePolicies(args)),
|
|
132
226
|
}),
|
|
133
227
|
defineTool({
|
|
134
228
|
name: 'ebay_get_motors_listing_policies',
|
|
135
229
|
description: 'Get motors listing policies for a marketplace',
|
|
136
|
-
inputSchema:
|
|
137
|
-
|
|
138
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
139
|
-
},
|
|
140
|
-
handler: (api, args) => api.metadata.getMotorsListingPolicies(args.marketplaceId, args.filter),
|
|
230
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
231
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getMotorsListingPolicies(args)),
|
|
141
232
|
}),
|
|
142
233
|
defineTool({
|
|
143
234
|
name: 'ebay_get_shipping_policies',
|
|
144
235
|
description: 'Get shipping policies for a marketplace',
|
|
145
|
-
inputSchema:
|
|
146
|
-
|
|
147
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
148
|
-
},
|
|
149
|
-
handler: (api, args) => api.metadata.getShippingPolicies(args.marketplaceId, args.filter),
|
|
236
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
237
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getShippingPolicies(args)),
|
|
150
238
|
}),
|
|
151
239
|
defineTool({
|
|
152
240
|
name: 'ebay_get_site_visibility_policies',
|
|
153
241
|
description: 'Get site visibility policies for a marketplace',
|
|
154
|
-
inputSchema:
|
|
155
|
-
|
|
156
|
-
filter: z.string().optional().describe('Filter criteria'),
|
|
157
|
-
},
|
|
158
|
-
handler: (api, args) => api.metadata.getSiteVisibilityPolicies(args.marketplaceId, args.filter),
|
|
242
|
+
inputSchema: marketplaceMetadataSchema.shape,
|
|
243
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getSiteVisibilityPolicies(args)),
|
|
159
244
|
}),
|
|
160
245
|
defineTool({
|
|
161
246
|
name: 'ebay_get_compatibilities_by_specification',
|
|
162
247
|
description: 'Get compatibilities by specification',
|
|
163
|
-
inputSchema:
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
handler: (api, args) => api.metadata.getCompatibilitiesBySpecification(args.specification),
|
|
248
|
+
inputSchema: compatibilitySpecificationRequestSchema.shape,
|
|
249
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getCompatibilitiesBySpecification(args)),
|
|
167
250
|
}),
|
|
168
251
|
defineTool({
|
|
169
252
|
name: 'ebay_get_compatibility_property_names',
|
|
170
253
|
description: 'Get compatibility property names',
|
|
171
|
-
inputSchema:
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
handler: (api, args) => api.metadata.getCompatibilityPropertyNames(args.data),
|
|
254
|
+
inputSchema: compatibilityPropertyNamesRequestSchema.shape,
|
|
255
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getCompatibilityPropertyNames(args)),
|
|
175
256
|
}),
|
|
176
257
|
defineTool({
|
|
177
258
|
name: 'ebay_get_compatibility_property_values',
|
|
178
259
|
description: 'Get compatibility property values',
|
|
179
|
-
inputSchema:
|
|
180
|
-
|
|
181
|
-
},
|
|
182
|
-
handler: (api, args) => api.metadata.getCompatibilityPropertyValues(args.data),
|
|
260
|
+
inputSchema: compatibilityPropertyValuesRequestSchema.shape,
|
|
261
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getCompatibilityPropertyValues(args)),
|
|
183
262
|
}),
|
|
184
263
|
defineTool({
|
|
185
264
|
name: 'ebay_get_multi_compatibility_property_values',
|
|
186
265
|
description: 'Get multiple compatibility property values',
|
|
187
|
-
inputSchema:
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
handler: (api, args) => api.metadata.getMultiCompatibilityPropertyValues(args.data),
|
|
266
|
+
inputSchema: multiCompatibilityPropertyValuesRequestSchema.shape,
|
|
267
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getMultiCompatibilityPropertyValues(args)),
|
|
191
268
|
}),
|
|
192
269
|
defineTool({
|
|
193
270
|
name: 'ebay_get_product_compatibilities',
|
|
194
271
|
description: 'Get product compatibilities',
|
|
195
|
-
inputSchema:
|
|
196
|
-
|
|
197
|
-
},
|
|
198
|
-
handler: (api, args) => api.metadata.getProductCompatibilities(args.data),
|
|
272
|
+
inputSchema: productCompatibilityRequestSchema.shape,
|
|
273
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getProductCompatibilities(args)),
|
|
199
274
|
}),
|
|
200
275
|
defineTool({
|
|
201
276
|
name: 'ebay_get_sales_tax_jurisdictions',
|
|
202
277
|
description: 'Get sales tax jurisdictions for a country',
|
|
203
|
-
inputSchema:
|
|
204
|
-
countryCode: z.string().describe('Country code (e.g., US)'),
|
|
205
|
-
},
|
|
278
|
+
inputSchema: salesTaxJurisdictionsSchema.shape,
|
|
206
279
|
outputSchema: {
|
|
207
280
|
type: 'object',
|
|
208
281
|
properties: {},
|
|
209
282
|
description: 'Success response',
|
|
210
283
|
},
|
|
211
|
-
handler: (api, args) => api.metadata.getSalesTaxJurisdictions(args
|
|
284
|
+
handler: (api, args) => Effect.runPromise(api.metadata.getSalesTaxJurisdictions(args)),
|
|
212
285
|
}),
|
|
213
286
|
];
|