Skip to main content
Glama

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
NameRequiredDescriptionDefault
s3_bucketYesS3 bucket name
s3_access_key_idYesAWS access key ID
s3_secret_access_keyYesAWS secret access key
s3_regionYesAWS region (e.g. us-east-1)

Implementation Reference

  • 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;
  • 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"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cerebrixos-org/tuning-engines-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server