validate_s3
Test S3 credentials by verifying read/write access to a specified bucket before submitting jobs with S3 export in the Tuning Engines MCP server.
Instructions
Validate S3 credentials by testing read/write access to the specified bucket. Use before submitting a job with S3 export.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| s3_bucket | Yes | S3 bucket name | |
| s3_access_key_id | Yes | AWS access key ID | |
| s3_secret_access_key | Yes | AWS secret access key | |
| s3_region | Yes | AWS region (e.g. us-east-1) |
Implementation Reference
- src/mcp.ts:443-450 (handler)The handler in `src/mcp.ts` that catches the `validate_s3` tool request and calls the client method.
case "validate_s3": result = await client.validateS3({ s3_bucket: args!.s3_bucket as string, s3_access_key_id: args!.s3_access_key_id as string, s3_secret_access_key: args!.s3_secret_access_key as string, s3_region: args!.s3_region as string, }); break; - src/client.ts:135-142 (helper)The client method `validateS3` that makes the HTTP request to the backend.
async validateS3(params: { s3_bucket: string; s3_access_key_id: string; s3_secret_access_key: string; s3_region: string; }): Promise<any> { return this.request("POST", "/api/v1/jobs/validate_s3", params); } - src/mcp.ts:236-249 (registration)Registration and definition of the `validate_s3` tool including its input schema.
name: "validate_s3", description: "Validate S3 credentials by testing read/write access to the specified bucket. Use before submitting a job with S3 export.", inputSchema: { type: "object" as const, properties: { s3_bucket: { type: "string", description: "S3 bucket name" }, s3_access_key_id: { type: "string", description: "AWS access key ID" }, s3_secret_access_key: { type: "string", description: "AWS secret access key" }, s3_region: { type: "string", description: "AWS region (e.g. us-east-1)" }, }, required: ["s3_bucket", "s3_access_key_id", "s3_secret_access_key", "s3_region"], }, },