@meterapp/car-image-sdk 1.36.0 → 1.38.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.md +6 -6
- package/dist/client.d.ts +17 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +52 -13
- package/dist/client.js.map +1 -1
- package/dist/mcp/index.d.ts +19 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +28 -14
- package/dist/mcp/index.js.map +1 -1
- package/dist/types.d.ts +24 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +9 -4
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/mcp/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { type Format, type RequestFormat } from "../types.js";
|
|
|
14
14
|
export declare const MCP_SERVER_INFO: {
|
|
15
15
|
readonly name: "car-image-api";
|
|
16
16
|
readonly title: "Car Image API";
|
|
17
|
-
readonly version: "1.
|
|
17
|
+
readonly version: "1.38.0";
|
|
18
18
|
readonly websiteUrl: "https://carimage.dev";
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -115,6 +115,7 @@ export declare const imageInputSchema: z.ZodObject<{
|
|
|
115
115
|
"rear-3-4-right": "rear-3-4-right";
|
|
116
116
|
side: "side";
|
|
117
117
|
"side-right": "side-right";
|
|
118
|
+
top: "top";
|
|
118
119
|
}>>;
|
|
119
120
|
color: z.ZodDefault<z.ZodString & z.ZodType<import("../types.js").Color, string, z.core.$ZodTypeInternals<import("../types.js").Color, string>>>;
|
|
120
121
|
size: z.ZodOptional<z.ZodEnum<{
|
|
@@ -197,6 +198,7 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
197
198
|
"rear-3-4-right": "rear-3-4-right";
|
|
198
199
|
side: "side";
|
|
199
200
|
"side-right": "side-right";
|
|
201
|
+
top: "top";
|
|
200
202
|
}>>;
|
|
201
203
|
color: z.ZodDefault<z.ZodString & z.ZodType<import("../types.js").Color, string, z.core.$ZodTypeInternals<import("../types.js").Color, string>>>;
|
|
202
204
|
size: z.ZodOptional<z.ZodEnum<{
|
|
@@ -268,6 +270,7 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
268
270
|
"rear-3-4-right": "rear-3-4-right";
|
|
269
271
|
side: "side";
|
|
270
272
|
"side-right": "side-right";
|
|
273
|
+
top: "top";
|
|
271
274
|
}>>;
|
|
272
275
|
color: z.ZodDefault<z.ZodString & z.ZodType<import("../types.js").Color, string, z.core.$ZodTypeInternals<import("../types.js").Color, string>>>;
|
|
273
276
|
size: z.ZodOptional<z.ZodEnum<{
|
|
@@ -324,6 +327,7 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
324
327
|
"rear-3-4-right": "rear-3-4-right";
|
|
325
328
|
side: "side";
|
|
326
329
|
"side-right": "side-right";
|
|
330
|
+
top: "top";
|
|
327
331
|
}>>;
|
|
328
332
|
color: z.ZodDefault<z.ZodString & z.ZodType<import("../types.js").Color, string, z.core.$ZodTypeInternals<import("../types.js").Color, string>>>;
|
|
329
333
|
}, z.core.$strip>;
|
|
@@ -335,6 +339,7 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
335
339
|
year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
336
340
|
ref: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
337
341
|
}, z.core.$strip>>;
|
|
342
|
+
views: z.ZodOptional<z.ZodBoolean>;
|
|
338
343
|
}, z.core.$strip>;
|
|
339
344
|
readonly resolve_vehicle: z.ZodObject<{
|
|
340
345
|
query: z.ZodString;
|
|
@@ -358,6 +363,7 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
358
363
|
"rear-3-4-right": "rear-3-4-right";
|
|
359
364
|
side: "side";
|
|
360
365
|
"side-right": "side-right";
|
|
366
|
+
top: "top";
|
|
361
367
|
}>>;
|
|
362
368
|
color: z.ZodOptional<z.ZodString & z.ZodType<import("../types.js").Color, string, z.core.$ZodTypeInternals<import("../types.js").Color, string>>>;
|
|
363
369
|
rating: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -659,6 +665,7 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
659
665
|
"rear-3-4-right": "rear-3-4-right";
|
|
660
666
|
side: "side";
|
|
661
667
|
"side-right": "side-right";
|
|
668
|
+
top: "top";
|
|
662
669
|
}>;
|
|
663
670
|
color: z.ZodString;
|
|
664
671
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -702,6 +709,7 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
702
709
|
"rear-3-4-right": "rear-3-4-right";
|
|
703
710
|
side: "side";
|
|
704
711
|
"side-right": "side-right";
|
|
712
|
+
top: "top";
|
|
705
713
|
}>;
|
|
706
714
|
color: z.ZodString;
|
|
707
715
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -778,6 +786,7 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
778
786
|
"rear-3-4-right": "rear-3-4-right";
|
|
779
787
|
side: "side";
|
|
780
788
|
"side-right": "side-right";
|
|
789
|
+
top: "top";
|
|
781
790
|
}>;
|
|
782
791
|
cached: z.ZodBoolean;
|
|
783
792
|
quality: z.ZodNullable<z.ZodEnum<{
|
|
@@ -820,6 +829,7 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
820
829
|
miss: z.ZodNumber;
|
|
821
830
|
invalid: z.ZodNumber;
|
|
822
831
|
distinct_vehicles: z.ZodNumber;
|
|
832
|
+
views_complete: z.ZodOptional<z.ZodNumber>;
|
|
823
833
|
}, z.core.$loose>;
|
|
824
834
|
results: z.ZodArray<z.ZodObject<{
|
|
825
835
|
index: z.ZodNumber;
|
|
@@ -852,6 +862,10 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
852
862
|
}, z.core.$loose>>>;
|
|
853
863
|
search: z.ZodOptional<z.ZodString>;
|
|
854
864
|
error: z.ZodOptional<z.ZodString>;
|
|
865
|
+
views: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
prepared: z.ZodNumber;
|
|
867
|
+
missing: z.ZodArray<z.ZodString>;
|
|
868
|
+
}, z.core.$loose>>;
|
|
855
869
|
}, z.core.$loose>>;
|
|
856
870
|
}, z.core.$loose>;
|
|
857
871
|
request_id: z.ZodString;
|
|
@@ -872,6 +886,7 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
872
886
|
"rear-3-4-right": "rear-3-4-right";
|
|
873
887
|
side: "side";
|
|
874
888
|
"side-right": "side-right";
|
|
889
|
+
top: "top";
|
|
875
890
|
}>;
|
|
876
891
|
color: z.ZodString;
|
|
877
892
|
}, z.core.$loose>;
|
|
@@ -909,6 +924,7 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
909
924
|
"rear-3-4-right": "rear-3-4-right";
|
|
910
925
|
side: "side";
|
|
911
926
|
"side-right": "side-right";
|
|
927
|
+
top: "top";
|
|
912
928
|
}>;
|
|
913
929
|
label: z.ZodString;
|
|
914
930
|
yaw_degrees: z.ZodNumber;
|
|
@@ -2331,6 +2347,8 @@ export interface CheckSummaryInput {
|
|
|
2331
2347
|
miss: number;
|
|
2332
2348
|
invalid: number;
|
|
2333
2349
|
distinct_vehicles: number;
|
|
2350
|
+
/** Present when the check read views. */
|
|
2351
|
+
views_complete?: number;
|
|
2334
2352
|
}
|
|
2335
2353
|
/** The one-line summary both servers put above a vehicle check: the counts, then what to do with each kind of answer. */
|
|
2336
2354
|
export declare function checkSummary(summary: CheckSummaryInput): string;
|
package/dist/mcp/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA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AAe,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EA6BL,KAAK,MAAM,EACX,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAerB,eAAO,MAAM,eAAe;aAC1B,IAAI,EAAE,eAAe;aACrB,KAAK,EAAE,eAAe;aACtB,OAAO;aACP,UAAU;CACF,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;aAAK,KAAK;iBAAI,WAAW;;CAAoB,CAAC;AAElF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;aACvB,IAAI,YACF,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,eAAe;aAEjB,GAAG,YACD,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB;CAEV,CAAC;AACX,MAAM,MAAM,UAAU,GAA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,CAMnG;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAmBrE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CASxE;AAED,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/mcp/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { checkoutLinkToolSchema, checkoutStatusResultSchema, checkoutStatusSchem
|
|
|
12
12
|
*/
|
|
13
13
|
import * as z from "zod";
|
|
14
14
|
import { isColor } from "../params.js";
|
|
15
|
-
import { CATALOG, CHECK_STATUSES, COLORS, CREDITS_PER_3D_MODEL, CREDITS_PER_DOLLAR, CREDITS_PER_IMAGE, DEFAULT_BASE_URL, FITS, FORMATS, FRAMINGS, FREE_CREDITS, FREE_VEHICLE_IMAGES, PLAN_ALLOWANCES, IDEMPOTENCY_KEY_PATTERN, MAX_CHECK_VEHICLES, MAX_DIMENSION, MAX_PADDING_PERCENT, MIN_YEAR, MODEL_3D_FILE_KINDS, REFERRAL_SOURCES, REQUEST_FORMATS, REQUEST_KINDS, REQUEST_SORTS, REQUEST_STATUSES, SIZES, VEHICLE_ID_PATTERN, VIEWS, } from "../types.js";
|
|
15
|
+
import { CATALOG, CHECK_STATUSES, COLORS, CREDITS_PER_3D_MODEL, CREDITS_PER_DOLLAR, CREDITS_PER_IMAGE, DEFAULT_BASE_URL, FITS, FORMATS, FRAMINGS, FREE_CREDITS, FREE_VEHICLE_IMAGES, PLAN_ALLOWANCES, IDEMPOTENCY_KEY_PATTERN, MAX_CHECK_VEHICLES, MAX_CHECK_VIEWS_VEHICLES, MAX_DIMENSION, MAX_PADDING_PERCENT, MIN_YEAR, MODEL_3D_FILE_KINDS, REFERRAL_SOURCES, REQUEST_FORMATS, REQUEST_KINDS, REQUEST_SORTS, REQUEST_STATUSES, SIZES, VEHICLE_ID_PATTERN, VIEWS, } from "../types.js";
|
|
16
16
|
import { SDK_VERSION } from "../version.js";
|
|
17
17
|
/** The 3D price as agents read it: "100 credits ($1.00)". */
|
|
18
18
|
const MODEL_3D_PRICE = `${CREDITS_PER_3D_MODEL.toLocaleString("en-US")} credits ($${(CREDITS_PER_3D_MODEL / CREDITS_PER_DOLLAR).toFixed(2)})`;
|
|
@@ -180,7 +180,7 @@ function toolsetHas(toolset, tool) {
|
|
|
180
180
|
* the rest.
|
|
181
181
|
*/
|
|
182
182
|
export function mcpInstructionsHead(toolset = DEFAULT_MCP_TOOLSET) {
|
|
183
|
-
return `Car Image API by Meter: studio vehicle renders from the open @meterapp/vehicle-db catalog,
|
|
183
|
+
return `Car Image API by Meter: studio vehicle renders from the open @meterapp/vehicle-db catalog, nine views, any paint color.
|
|
184
184
|
|
|
185
185
|
First look the vehicle up: resolve_vehicle reads a year/make/model phrase and returns params.vehicle_id, view and color; search_vehicles browses; decode_vin reads a VIN; check_vehicles checks a list of up to ${MAX_MCP_CHECK_VEHICLES} at once. All are free. Do this even for a car you picked yourself: catalog names differ from familiar names. Include a year; if the human named none, choose one and say which. Reuse an id already in this conversation.
|
|
186
186
|
|
|
@@ -193,7 +193,7 @@ Free: every new account includes ${FREE_VEHICLE_IMAGES} free vehicle images a mo
|
|
|
193
193
|
${HEAD_FEEDBACK}`;
|
|
194
194
|
}
|
|
195
195
|
const REFERENCE_BLOCKS = [
|
|
196
|
-
{ needs: [], text: `Reference.\n\nImages:
|
|
196
|
+
{ needs: [], text: `Reference.\n\nImages: nine camera views (front, rear, both side profiles, all four three-quarter corners and top, straight down from above), any paint color (fifteen named presets or any hex such as #1a2b3c), PNG/WebP/JPG up to 1024 px, any width and height (fit contain|cover|inside), transparent or a solid background color. Every catalog vehicle has a stable id (veh_ followed by 13 characters) that search_vehicles, resolve_vehicle, decode_vin and check_vehicles return and every tool that names a vehicle accepts as \`vehicle\` in place of make, model and year.` },
|
|
197
197
|
{ needs: ["create_3d_model", "get_3d_model", "publish_3d_model"], text: `3D models: for a textured 3D model (GLB, USDZ, FBX), call create_3d_model once the human has agreed to the cost, then poll get_3d_model every few seconds until status is ready and hand over files.<kind>.url; the first model of a vehicle takes 10–20 minutes; further colors take 1–2 minutes. To put a model on a web page, pass publish: true to create_3d_model (or call publish_3d_model later) and paste data.public.embed.html: a script tag and a <car-3d> element, hosted by Car Image, no key in the page; data.public.files are the key-free GLB, USDZ and poster URLs for any other viewer. create_3d_model is charged when the request is made, and billing.already_owned is true when it was free.` },
|
|
198
198
|
{ needs: ["get_make_logo"], text: `Make logos: get_make_logo returns a catalog make logo inline for 1 credit per successful call, cached or generated. It accepts make and image transforms, with no vehicle selector, view or paint color. There is no signed logo URL: use car-image logo or client.getMakeLogo to download for a site. Inspect generated logos before use. Logos are third-party trademarks for referential display only; no license is granted and they sit outside every VehiclesDB indemnity. See ${DEFAULT_BASE_URL}/terms?ref=mcp#logos.` },
|
|
199
199
|
{ needs: [], text: `Security: never place the API key in URLs, HTML, logs, screenshots or client-side code. Signed delivery URLs are the only thing that should ever reach a browser.` },
|
|
@@ -268,7 +268,7 @@ export const imageInputSchema = z
|
|
|
268
268
|
view: z
|
|
269
269
|
.enum(VIEWS)
|
|
270
270
|
.default("front-3-4")
|
|
271
|
-
.describe("Camera angle, in yaw order around the car: front (0°), front-3-4 (35°, the classic hero angle, nose left), side (profile, nose left), rear-3-4 (145°, nose left), rear (180°), rear-3-4-right (215°, nose right), side-right (profile, nose right), front-3-4-right (325°, the hero angle mirrored, nose right)."),
|
|
271
|
+
.describe("Camera angle, in yaw order around the car: front (0°), front-3-4 (35°, the classic hero angle, nose left), side (profile, nose left), rear-3-4 (145°, nose left), rear (180°), rear-3-4-right (215°, nose right), side-right (profile, nose right), front-3-4-right (325°, the hero angle mirrored, nose right), then top (straight down from above, nose up: a bird's-eye plan view)."),
|
|
272
272
|
color: colorSchema.default("silver"),
|
|
273
273
|
size: z
|
|
274
274
|
.enum(["thumb", "small", "medium", "large"])
|
|
@@ -381,7 +381,7 @@ export const MCP_TOOL_SCHEMAS = {
|
|
|
381
381
|
}),
|
|
382
382
|
get_image_availability: z.object({
|
|
383
383
|
...vehicleFields,
|
|
384
|
-
view: z.enum(VIEWS).optional().describe("Check one camera view; omit to check all
|
|
384
|
+
view: z.enum(VIEWS).optional().describe("Check one camera view; omit to check all nine views."),
|
|
385
385
|
color: colorSchema.default("silver"),
|
|
386
386
|
}).refine(namesOneVehicle, ONE_VEHICLE),
|
|
387
387
|
check_vehicles: z.object({
|
|
@@ -390,6 +390,10 @@ export const MCP_TOOL_SCHEMAS = {
|
|
|
390
390
|
.min(1)
|
|
391
391
|
.max(MAX_MCP_CHECK_VEHICLES)
|
|
392
392
|
.describe(`1 to ${MAX_MCP_CHECK_VEHICLES} vehicles, each {make, model, year} as the list spells them or {vehicle} for a stored id, with an optional ref echoed back.`),
|
|
393
|
+
views: z
|
|
394
|
+
.boolean()
|
|
395
|
+
.optional()
|
|
396
|
+
.describe("true: each match also says which of its nine camera views are prepared now, as get_image_availability reports them (views.prepared 0-9 and views.missing). Free and read-only. Default false."),
|
|
393
397
|
}),
|
|
394
398
|
resolve_vehicle: z.object({
|
|
395
399
|
query: z
|
|
@@ -998,6 +1002,8 @@ export const MCP_TOOL_OUTPUT_SCHEMAS = {
|
|
|
998
1002
|
invalid: z.number().int(),
|
|
999
1003
|
/** Distinct vehicle ids among the matches. */
|
|
1000
1004
|
distinct_vehicles: z.number().int(),
|
|
1005
|
+
/** With views: distinct matched vehicles whose nine views are all prepared. */
|
|
1006
|
+
views_complete: z.number().int().optional(),
|
|
1001
1007
|
}),
|
|
1002
1008
|
results: z.array(z.looseObject({
|
|
1003
1009
|
/** Position in `vehicles`. */
|
|
@@ -1024,6 +1030,8 @@ export const MCP_TOOL_OUTPUT_SCHEMAS = {
|
|
|
1024
1030
|
suggestions: z.array(vehicleSuggestionSchema).optional(),
|
|
1025
1031
|
search: z.string().optional(),
|
|
1026
1032
|
error: z.string().optional(),
|
|
1033
|
+
/** With views, for a match: how many of the nine views are prepared and which are missing. */
|
|
1034
|
+
views: z.looseObject({ prepared: z.number().int(), missing: z.array(z.string()) }).optional(),
|
|
1027
1035
|
})),
|
|
1028
1036
|
}),
|
|
1029
1037
|
request_id: z.string(),
|
|
@@ -1329,6 +1337,9 @@ export function checkSummary(summary) {
|
|
|
1329
1337
|
].join(", ");
|
|
1330
1338
|
const next = [
|
|
1331
1339
|
summary.match ? `Render each match by its vehicle.id (${plural(summary.distinct_vehicles, "distinct vehicle", "distinct vehicles")}).` : "",
|
|
1340
|
+
summary.views_complete !== undefined && summary.match
|
|
1341
|
+
? `${summary.views_complete} of ${summary.distinct_vehicles} have all nine views prepared; views.missing names the views of the others that are not prepared yet.`
|
|
1342
|
+
: "",
|
|
1332
1343
|
summary.suggestion ? "Each suggestion names other vehicles than the one listed: ask the human before using one." : "",
|
|
1333
1344
|
summary.miss ? "Skip each miss in every view and color." : "",
|
|
1334
1345
|
summary.invalid ? "Fix the invalid entries (error) and check them again." : "",
|
|
@@ -1420,7 +1431,7 @@ export const MCP_TOOLS = {
|
|
|
1420
1431
|
get_car_image: {
|
|
1421
1432
|
name: "get_car_image",
|
|
1422
1433
|
title: "Get car image bytes",
|
|
1423
|
-
description: `Show a vehicle in chat: returns the image as an MCP image the host displays inline with the result, and the bytes for a file. Name the vehicle, view and color in the reply; do not also mint a signed URL for the same image. Where the person cannot see tool images (a terminal), use create_car_image_urls instead. Counts one vehicle image (vehicle, color, angle) for the month on the account's plan, prepared yet or not; the same image again this month adds nothing. Legacy credit-meter accounts: COSTS ${CREDITS_PER_IMAGE} CREDIT per call, cached or generated. Call resolve_vehicle first (or search_vehicles, or decode_vin for a VIN) and pass the id it returns as \`vehicle\`: the lookup is free, and the catalog files cars under its own names (a Mazda "MX-5 Miata" is mx-5), so a make and model typed from memory can answer 404 for a car the catalog carries. Make, model and year are for callers that already hold catalog spellings.
|
|
1434
|
+
description: `Show a vehicle in chat: returns the image as an MCP image the host displays inline with the result, and the bytes for a file. Name the vehicle, view and color in the reply; do not also mint a signed URL for the same image. Where the person cannot see tool images (a terminal), use create_car_image_urls instead. Counts one vehicle image (vehicle, color, angle) for the month on the account's plan, prepared yet or not; the same image again this month adds nothing. Legacy credit-meter accounts: COSTS ${CREDITS_PER_IMAGE} CREDIT per call, cached or generated. Call resolve_vehicle first (or search_vehicles, or decode_vin for a VIN) and pass the id it returns as \`vehicle\`: the lookup is free, and the catalog files cars under its own names (a Mazda "MX-5 Miata" is mx-5), so a make and model typed from memory can answer 404 for a car the catalog carries. Make, model and year are for callers that already hold catalog spellings. Nine camera angles, any paint color (fifteen named presets or any hex such as #1a2b3c), any width and height up to ${MAX_DIMENSION} px (fit contain|cover|inside), transparent or on a solid background, optionally trimmed to the car and with a soft ground shadow (shadow: true). Returns the image (PNG/WebP/JPG; format auto delivers PNG here) plus usage metadata (credits_charged, vehicle_images used this month, or credits_remaining on the credit meter; source cache|generated, request_id, the vehicle with its vehicle_id). Use create_car_image_urls for web pages, apps, emails and documents, and in a terminal. Do not call both paid tools for one image.`,
|
|
1424
1435
|
inputSchema: MCP_TOOL_SCHEMAS.get_car_image,
|
|
1425
1436
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_car_image,
|
|
1426
1437
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
@@ -1507,7 +1518,7 @@ export const MCP_TOOLS = {
|
|
|
1507
1518
|
get_image_availability: {
|
|
1508
1519
|
name: "get_image_availability",
|
|
1509
1520
|
title: "Check prepared images and quality",
|
|
1510
|
-
description: "Free, read-only check before generating an image. Look the vehicle up first and pass its vehicle id. Check one view or omit view for all
|
|
1521
|
+
description: "Free, read-only check before generating an image. Look the vehicle up first and pass its vehicle id. Check one view or omit view for all nine; pass the requested paint as color. cached true means the view is prepared: it serves quickly from storage, without waiting for a new render. Returns each view's quality (standard, enhanced or premium; null when no stored image), upgrade state, and render_eta for views not cached. It renders nothing, queues nothing and counts no image usage. This does not authorize a render or a quality upgrade. Unlike a public preview, this checks what an authenticated image request would serve, including the requested color.",
|
|
1511
1522
|
inputSchema: MCP_TOOL_SCHEMAS.get_image_availability,
|
|
1512
1523
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_image_availability,
|
|
1513
1524
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
@@ -1515,7 +1526,7 @@ export const MCP_TOOLS = {
|
|
|
1515
1526
|
check_vehicles: {
|
|
1516
1527
|
name: "check_vehicles",
|
|
1517
1528
|
title: "Check which vehicles the catalog carries",
|
|
1518
|
-
description: `Free. Check a list of up to ${MAX_MCP_CHECK_VEHICLES} vehicles in one call before rendering any: which ones the catalog carries and under which vehicle id. Send each as the list spells it ({make, model, year}) or as a stored id ({vehicle}), with an optional ref that is echoed back. Each entry is read exactly as get_car_image would read it and answered as match (vehicle.id is the id to store and render by; vehicle.match is exact, or the looser rule that read the name), suggestion (not in the catalog as named; suggestions are real vehicles close to it, such as the same model in its nearest year, which is another car: ask the human before using one), miss (nothing close: skip it in every view and color) or invalid (error says what to fix). Use it for a catalog, a spreadsheet or any list of more than a few cars, instead of one lookup or one paid render per car; summary counts each status and the distinct vehicles a backfill would render. A longer list is work for code: car-image check <file>, or client.checkVehicles, ${MAX_CHECK_VEHICLES.toLocaleString("en-US")} vehicles per request.`,
|
|
1529
|
+
description: `Free. Check a list of up to ${MAX_MCP_CHECK_VEHICLES} vehicles in one call before rendering any: which ones the catalog carries and under which vehicle id. Send each as the list spells it ({make, model, year}) or as a stored id ({vehicle}), with an optional ref that is echoed back. Each entry is read exactly as get_car_image would read it and answered as match (vehicle.id is the id to store and render by; vehicle.match is exact, or the looser rule that read the name), suggestion (not in the catalog as named; suggestions are real vehicles close to it, such as the same model in its nearest year, which is another car: ask the human before using one), miss (nothing close: skip it in every view and color) or invalid (error says what to fix). Use it for a catalog, a spreadsheet or any list of more than a few cars, instead of one lookup or one paid render per car; summary counts each status and the distinct vehicles a backfill would render. With views: true each match also carries views.prepared (0-9) and views.missing, which of its nine camera views are prepared now, and summary.views_complete counts the vehicles with all nine. A longer list is work for code: car-image check <file>, or client.checkVehicles, ${MAX_CHECK_VEHICLES.toLocaleString("en-US")} vehicles per request.`,
|
|
1519
1530
|
inputSchema: MCP_TOOL_SCHEMAS.check_vehicles,
|
|
1520
1531
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.check_vehicles,
|
|
1521
1532
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
@@ -1793,7 +1804,7 @@ export const API_REFERENCE = [
|
|
|
1793
1804
|
summary: "The catalog vehicle a stable id names, with its years and the image URLs that render it.",
|
|
1794
1805
|
auth: "public",
|
|
1795
1806
|
credits: "free",
|
|
1796
|
-
returns: "{data:{id, make:{id,name,slug}, model:{name,slug,vehicle_type}, year, years, year_ranges, image_path, images:{front,front-3-4,side,rear-3-4,rear,rear-3-4-right,side-right,front-3-4-right}}, request_id}",
|
|
1807
|
+
returns: "{data:{id, make:{id,name,slug}, model:{name,slug,vehicle_type}, year, years, year_ranges, image_path, images:{front,front-3-4,side,rear-3-4,rear,rear-3-4-right,side-right,front-3-4-right,top}}, request_id}",
|
|
1797
1808
|
errors: ["400 not a vehicle id", "404 unknown id"],
|
|
1798
1809
|
notes: "Ids are a pure function of the catalog spelling and never change; store them instead of make/model/year strings.",
|
|
1799
1810
|
sdk: "client.vehicle('veh_395yw8tn73ff8')",
|
|
@@ -1805,12 +1816,15 @@ export const API_REFERENCE = [
|
|
|
1805
1816
|
summary: "Check which of a list of vehicles the catalog carries, each read the way the image endpoints read it, and get the ids to render by.",
|
|
1806
1817
|
auth: "bearer",
|
|
1807
1818
|
credits: "free (10 checks a minute per account)",
|
|
1808
|
-
params: [
|
|
1809
|
-
|
|
1810
|
-
|
|
1819
|
+
params: [
|
|
1820
|
+
`vehicles: 1-${MAX_CHECK_VEHICLES.toLocaleString("en-US")} entries, each {make, model, year} as your data spells them or {vehicle} (a stored id), plus an optional ref (string or number) echoed back; other fields are ignored`,
|
|
1821
|
+
`views: optional boolean; true adds each match's views (prepared 0-9, missing view names) and summary.views_complete, at most ${MAX_CHECK_VIEWS_VEHICLES} entries`,
|
|
1822
|
+
],
|
|
1823
|
+
returns: "{data:{summary:{total,match,suggestion,miss,invalid,distinct_vehicles,views_complete?}, results:[{index, ref?, status:match|suggestion|miss|invalid, vehicle:{id,make,make_name,model,model_name,year,match,image_path}|null, reason?:make|model|year|vehicle, suggestions?:[{make,make_name,model,model_name,year,id,image_path}], search?, error?, views?:{prepared,missing}}]}, request_id}",
|
|
1824
|
+
errors: [`400 not a list of vehicles, or more than ${MAX_CHECK_VEHICLES.toLocaleString("en-US")} entries (${MAX_CHECK_VIEWS_VEHICLES} with views)`, "401", "413 body over 1 MiB", "429 more than 10 checks a minute (Retry-After)"],
|
|
1811
1825
|
notes: "Store each match's vehicle.id and render by vehicle=<id> in every view and color. A suggestion is another vehicle (the same model in its nearest year, a related model): never substitute it silently. Skip a miss in every view and color, and check misses again after catalog releases. A bad entry is answered as invalid on its own; it never fails the list.",
|
|
1812
|
-
sdk: "client.checkVehicles([{ make, model, year, ref }, { vehicle }], { batchSize, onProgress }) (splits any length)",
|
|
1813
|
-
cli: "car-image check vehicles.csv --out checked.csv",
|
|
1826
|
+
sdk: "client.checkVehicles([{ make, model, year, ref }, { vehicle }], { views, batchSize, onProgress }) (splits any length)",
|
|
1827
|
+
cli: "car-image check vehicles.csv [--views] --out checked.csv",
|
|
1814
1828
|
},
|
|
1815
1829
|
{
|
|
1816
1830
|
method: "GET",
|